1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 15:11:35 +00:00
nixpkgs/pkgs/development/libraries/crypto++/pic.patch
Ludovic Courtès 5a75fd2147 Crypto++ 5.6.0, with shared library and test suite.
svn path=/nixpkgs/trunk/; revision=16661
2009-08-10 23:50:07 +00:00

14 lines
416 B
Diff

Build position-independent code, for shared libraries.
--- a/GNUmakefile 2009-03-15 02:48:02.000000000 +0100
+++ b/GNUmakefile 2009-08-11 00:13:43.000000000 +0200
@@ -162,7 +162,7 @@ endif
$(CXX) $(CXXFLAGS) -DCRYPTOPP_IMPORTS -c $< -o $@
%.export.o : %.cpp
- $(CXX) $(CXXFLAGS) -DCRYPTOPP_EXPORTS -c $< -o $@
+ $(CXX) $(CXXFLAGS) -fPIC -DCRYPTOPP_EXPORTS -c $< -o $@
%.o : %.cpp
$(CXX) $(CXXFLAGS) -c $<