compile for OpenBSD
This commit is contained in:
@@ -4,8 +4,7 @@ const char* CC = "cc";
|
|||||||
// C++ compiler
|
// C++ compiler
|
||||||
const char* CXX = "c++";
|
const char* CXX = "c++";
|
||||||
|
|
||||||
// The compilation options are chosen with gcc in mind, but clang should also work
|
// Options are based on gcc, but should work for clang as well
|
||||||
// Other compilers are not tested, but may work
|
|
||||||
// You can read about gcc options by running "man gcc"
|
// You can read about gcc options by running "man gcc"
|
||||||
|
|
||||||
// Compiler options to use...
|
// Compiler options to use...
|
||||||
|
|||||||
@@ -5,9 +5,7 @@ cd src
|
|||||||
# Install location
|
# Install location
|
||||||
PREFIX=/usr/local
|
PREFIX=/usr/local
|
||||||
|
|
||||||
|
|
||||||
# Compile cppipe
|
# 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 -Ofast -fwhole-program -march=native -DNDEBUG -Wall -Wextra -Wno-parentheses -Wno-unused-result -s -pipe"
|
||||||
# options="-std=c++17 -g"
|
# options="-std=c++17 -g"
|
||||||
c++ -o cppipe $options cppipe.cpp
|
c++ -o cppipe $options cppipe.cpp
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include "commands.hpp"
|
#include "commands.hpp"
|
||||||
|
|||||||
Reference in New Issue
Block a user