buildsys  Check-in [be6fab977d]

Overview
Comment:@rpath is not even needed as install_name

It is possible to set it to the path where the library will be installed
and still have in-tree applications work by setting DYLD_LIBRARY_PATH.
Even if the library is already installed, it will use the in-tree
library if DYLD_LIBRARY_PATH is set.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: be6fab977dabf37bdf1b0bbc993cf32a85446a71207f5e5c67b65fb2e2694adb
User & Date: js on 2014-05-15 15:52:30
Other Links: manifest | tags
Context
2014-05-25
11:28
Better naming for shared library systems check-in: cce8f132a5 user: js tags: trunk
2014-05-15
15:52
@rpath is not even needed as install_name check-in: be6fab977d user: js tags: trunk
01:09
Use @rpath/foo.dylib as install_name check-in: f23a2d808f user: js tags: trunk
Changes

Modified m4/buildsys.m4 from [8914ce1316] to [b446dc0e74].

116
117
118
119
120
121
122
123

124
125
126
127
128
129
130
116
117
118
119
120
121
122

123
124
125
126
127
128
129
130







-
+







AC_DEFUN([BUILDSYS_SHARED_LIB], [
	AC_REQUIRE([AC_CANONICAL_HOST])
	AC_MSG_CHECKING(for shared library system)
	case "$host_os" in
		darwin*)
			AC_MSG_RESULT(Darwin)
			LIB_CFLAGS='-fPIC -DPIC'
			LIB_LDFLAGS='-dynamiclib -current_version ${LIB_MAJOR}.${LIB_MINOR} -compatibility_version ${LIB_MAJOR} -Wl,-install_name,@rpath/$''@'
			LIB_LDFLAGS='-dynamiclib -current_version ${LIB_MAJOR}.${LIB_MINOR} -compatibility_version ${LIB_MAJOR} -Wl,-install_name,${libdir}/$''@'
			LIB_PREFIX='lib'
			LIB_SUFFIX='.dylib'
			LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
			PLUGIN_CFLAGS='-fPIC -DPIC'
			PLUGIN_LDFLAGS='-bundle -undefined dynamic_lookup'
			PLUGIN_SUFFIX='.bundle'
			INSTALL_LIB='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib && ${LN_S} -f $${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.dylib && ${LN_S} -f $${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib ${DESTDIR}${libdir}/$$i'