Created
October 13, 2015 20:16
-
-
Save ndmitchell/15e25dd281e17cae6d38 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(Linux) | |
g++ -dynamic -g -c -arch i386 x86_64 -Wall -fPIC -I/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/include/darwin -I./include/iConnect -I./include/TsiSdk -I./include/TsiSdk++ -I./lib iConnectJavaJCPP.cpp -o iConnectJCPP.o | |
g++ -dynamiclib -arch i386 x86_64 -Wl,-soname,libiConnectJCPP.so, --no-undefined -L./lib iConnectJCPP.o -o libiConnectJCPP.dylib -lTsiSdk -liConnect -lTsiSdk++ | |
(Mac OS X) | |
g++ -dynamic -g -c -arch i386 x86_64 -Wall -I/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/include/darwin -I./include/iConnect -I./include/TsiSdk -I./include/TsiSdk++ -I./lib iConnectJavaJCPP.cpp -o iConnectJCPP.o | |
g++ -dynaniclib -arch i386 x86_64 -undefined suppress -flat_namespace *.o *.a -o libiconnectjcpp.dylib | |
Note: difference between Linux and Mac OS X is the -fPIC switch (position independent code, which is not valid for MachO dynamic library) and linking flat namespace (Mac OS X is default to 2-tiered). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment