1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 05:31:22 +00:00
nixpkgs/pkgs/development/libraries/crypto++/dll.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

25 lines
799 B
Diff

Get rid of Windows-specific stuff.
--- crypto++/dll.cpp 2009-03-01 19:44:02.000000000 +0100
+++ crypto++/dll.cpp 2009-08-11 00:49:34.000000000 +0200
@@ -39,7 +39,7 @@ NAMESPACE_END
#endif
-#ifdef CRYPTOPP_EXPORTS
+#if defined CRYPTOPP_EXPORTS && defined _MSC_VER
USING_NAMESPACE(CryptoPP)
--- crypto++/GNUmakefile 2009-03-15 02:48:02.000000000 +0100
+++ crypto++/GNUmakefile 2009-08-11 01:23:09.000000000 +0200
@@ -136,7 +136,7 @@ nolib: $(OBJS) # makes it faster to tes
dll: cryptest.import.exe dlltest.exe
cryptopp.dll: $(DLLOBJS)
- $(CXX) -shared -o $@ $(CXXFLAGS) $(DLLOBJS) $(LDFLAGS) $(LDLIBS) -Wl,--out-implib=libcryptopp.dll.a
+ $(CXX) -shared -o $@ $(CXXFLAGS) $(DLLOBJS) $(LDFLAGS) $(LDLIBS)
libcryptopp.import.a: $(LIBIMPORTOBJS)
$(AR) $(ARFLAGS) $@ $(LIBIMPORTOBJS)