about summary refs log tree commit diff
path: root/Makefile.config.in
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2007-05-04 21:41:17 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2007-05-04 21:41:17 +0000
commit880386dd390b3e99853cbea47005a9b7f589a409 (patch)
tree6ddac7499cb0e21c1eb176862943295889175aac /Makefile.config.in
parentb814b9148bbc8522cb7feac3cd049e4185fdbab0 (diff)
downloadnetpbm-mirror-880386dd390b3e99853cbea47005a9b7f589a409.tar.gz
netpbm-mirror-880386dd390b3e99853cbea47005a9b7f589a409.tar.xz
netpbm-mirror-880386dd390b3e99853cbea47005a9b7f589a409.zip
Do default runtime link path for Mac OSX properly
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@288 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'Makefile.config.in')
-rw-r--r--Makefile.config.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile.config.in b/Makefile.config.in
index 84666cb1..4929a6d8 100644
--- a/Makefile.config.in
+++ b/Makefile.config.in
@@ -248,6 +248,17 @@ LDSHLIB = -shared -Wl,-soname,$(SONAME)
 #LDSHLIB = -shared
 #AIX Visual Age C:
 #LDSHLIB = -qmkshrobj
+#Mac OSX:
+# According to experiments done by Peter A Crowley in May 2007, if
+# libnetpbm goes in a standard place such as /usr/local/lib,
+# programs need not be built with libnetpbm's location included.
+# But if it goes elsewhere, the link-editor must include the
+# location in the executable.  It finds the runtime location by
+# looking inside the library.  The information in the library
+# comes from the install_name option with which the library was
+# built.  It's an alternative to the -rpath option on other systems.
+#LDSHLIB=-dynamiclib
+#LDSHLIB=-dynamiclib -install_name $(NETPBMLIB_RUNTIME_PATH)/libnetpbm.$(MAJ).dylib
 
 # LDRELOC is the command to combine two .o files (relocateable object files)
 # into a single .o file that can later be linked into something else.  NONE