Skip to content

Instantly share code, notes, and snippets.

@srl295
Last active April 17, 2019 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srl295/b502abe5e83bf08f9b95fd8c856d6244 to your computer and use it in GitHub Desktop.
Save srl295/b502abe5e83bf08f9b95fd8c856d6244 to your computer and use it in GitHub Desktop.
< --enable-rpath | > --disable-rpath
9c9
< GENLIB=clang -dynamiclib -dynamic -O2 -std=c11 -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Qunused-arguments -Wno-parentheses-equality -Wl,-rpath,/usr/local/lib
---
> GENLIB=clang -dynamiclib -dynamic -O2 -std=c11 -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Qunused-arguments -Wno-parentheses-equality
11c11
< LD_SONAME=-Wl,-compatibility_version -Wl,64 -Wl,-current_version -Wl,64.2 -install_name /usr/local/lib/≈
---
> LD_SONAME=-Wl,-compatibility_version -Wl,64 -Wl,-current_version -Wl,64.2 -install_name•
@srl295
Copy link
Author

srl295 commented Apr 17, 2019

Note that a library name is appended. so $(LD_SONAME)libicudata.dylib

  • I put a at the end of the diff to show where the correct trailing space is in the non-rpath version - -install_name libicudata.dylib
  • I put a in the rpath version to show where there was a space that should NOT have been there. -install_namne /usr/local/lib/libicudata.dylib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment