#OpenSSL ports version (req. for 1.0.2) #WITH_OPENSSL_PORT=YES DEFAULT_VERSIONS+=ssl=openssl DEFAULT_VERSIONS+=perl5=5.24 WRKDIRPREFIX=/tmp #WITHOUT_X11=yes OPTIONS_UNSET=+X11 CPUTYPE?=native ALLOW_UNSUPPORTED_SYSTEM=yes #LD_LIBRARY_PATH=/usr/local/lib/gcc7 DEBUG_FLAGS= # Doesn't work #FORCE_MAKE_JOBS=1 MAKE_JOBS_NUMBER=4 #.if empty(.CURDIR:M*php56*) #.if empty(.CURDIR:M*openssl*) CC=clang70 CXX=clang++70 CPP=clang-cpp70 #.endif # We can't apply any optimizations to devel/p5-Params-Classify, it refuses them # -O2/3 doesn't work for ninja, gcc or libgcrypt #.if empty(.CURDIR:M*/usr/ports/devel/p5-Params-Classify) .if empty(.CURDIR:M*/usr/ports/devel/ninja) && empty(.CURDIR:M*/usr/ports/security/libgcrypt) CFLAGS+=-O2 CXXFLAGS+=-Wno-deprecated -O2 .endif #.endif #CFLAGS+=-g3 -O0 #CXXFLAGS+=-Wno-deprecated -g3 -O0 # Use flto where it works, sometimes requiring other libraries to be explicitly linked # !empty(.CURDIR:M*apache24) #pcre .if !empty(.CURDIR:M*llvm50) || !empty(.CURDIR:M*varnish4) #CFLAGS+=-flto=thin #CXXFLAGS+=-flto=thin #LDFLAGS+=-flto=thin .elif !empty(.CURDIR:M*mariadb*) #Needs PCRE as well? #-lpcre #CFLAGS+=-flto -L/usr/local/lib -I/usr/local/include #CXXFLAGS+=-flto -L/usr/local/lib -I/usr/local/include #LDFLAGS+=-flto -L/usr/local/lib -I/usr/local/include .endif ## php56 extensions (including mod_php56) need -flto in CC/CXX/CPP instead, because it has its own build process ##Only it turns out this just breaks in the end # Or does it? #.if !empty(.CURDIR:M*php56*) #CC+=-flto #CXX+=-flto #CPP+=-flto #.endif # Use Gold linker except where it doesn't work .if empty(.CURDIR:M*/usr/ports/devel/glib20) && empty(.CURDIR:M/usr/ports/multimedia/x264) && empty(.CURDIR:M/usr/ports/multimedia/libx264) #LDFLAGS+=-fuse-ld=gold #LDFLAGS+=-fuse-ld=gold -fopenmp=libomp #LTO needs gold ld, bfd doesn't work .else #glib20 needs bfd #LDFLAGS+=-fuse-ld=bfd .endif ##.if !empty(.CURDIR:M/usr/ports/*) && exists(/usr/local/bin/gcc7) #.if !empty(.CURDIR:M/usr/ports/multimedia/x264) || !empty(.CURDIR:M/usr/ports/multimedia/libx264) ##.if !empty(.CURDIR:M/usr/ports/lang/gcc7) #CC=gcc8 #CXX=g++8 #CPP=cpp8 ##.endif #.endif #ImageMagick's screwy, detects this incorrectly PERL_THREADED=true # MySQL Native Driver WITH_MYSQLND=YES # Enable if trying to build something which is not working with multiple jobs #MAKE_JOBS_UNSAFE=yes