compile for OpenBSD

This commit is contained in:
vrd
2024-06-20 11:56:38 +03:00
parent e1353c0092
commit 2f94acd618
3 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -4,8 +4,7 @@ const char* CC = "cc";
// C++ compiler
const char* CXX = "c++";
// The compilation options are chosen with gcc in mind, but clang should also work
// Other compilers are not tested, but may work
// Options are based on gcc, but should work for clang as well
// You can read about gcc options by running "man gcc"
// Compiler options to use...
-2
View File
@@ -5,9 +5,7 @@ cd src
# Install location
PREFIX=/usr/local
# Compile cppipe
# The options are with gcc in mind, but should work with clang and maybe other compilers
options="-std=c++17 -Ofast -fwhole-program -march=native -DNDEBUG -Wall -Wextra -Wno-parentheses -Wno-unused-result -s -pipe"
# options="-std=c++17 -g"
c++ -o cppipe $options cppipe.cpp
+1
View File
@@ -3,6 +3,7 @@
#include <assert.h>
#include <limits.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include "commands.hpp"