1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/security/cryptopp/files/patch-GNUmakefile
Eitan Adler e376724077 - Modernize port:
- Stagify
  - USES=gmake instead of USE_GMAKE
- Don't build with -march=native as the build box may not be identical to the
  run box.
2014-02-05 19:32:00 +00:00

27 lines
757 B
Plaintext

--- ./GNUmakefile.orig 2013-02-20 15:30:52.000000000 -0500
+++ ./GNUmakefile 2014-02-05 14:26:22.994957010 -0500
@@ -1,4 +1,4 @@
-CXXFLAGS = -DNDEBUG -g -O2
+#CXXFLAGS = -DNDEBUG -g -O2
# -O3 fails to link on Cygwin GCC version 4.5.3
# -fPIC is supported. Please report any breakage of -fPIC as a bug.
# CXXFLAGS += -fPIC
@@ -38,8 +38,6 @@
ifneq ($(GCC42_OR_LATER),0)
ifeq ($(UNAME),Darwin)
CXXFLAGS += -arch x86_64 -arch i386
-else
-CXXFLAGS += -march=native
endif
endif
@@ -165,7 +163,7 @@
$(RANLIB) $@
libcryptopp.so: $(LIBOBJS)
- $(CXX) -shared -o $@ $(LIBOBJS)
+ $(CXX) -shared -o $@ $(CXXFLAGS) $(LDFLAGS) $(LIBOBJS)
cryptest.exe: libcryptopp.a $(TESTOBJS)
$(CXX) -o $@ $(CXXFLAGS) $(TESTOBJS) ./libcryptopp.a $(LDFLAGS) $(LDLIBS)