From: Alan T. DeKok Date: Mon, 30 Nov 2015 19:40:02 +0000 (-0500) Subject: Better sun fixes X-Git-Tag: release_3_0_11~124 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;h=76326fdf2c9ff6c4940aed48de20b797a1c07256;p=freeradius.git Better sun fixes --- diff --git a/scripts/jlibtool.c b/scripts/jlibtool.c index 76e5a31..c04390d 100644 --- a/scripts/jlibtool.c +++ b/scripts/jlibtool.c @@ -79,7 +79,7 @@ # define LD_LIBRARY_PATH_LOCAL "DYLD_FALLBACK_LIBRARY_PATH" #endif -#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__GNUC__) +#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || (defined(__sun) && defined(__GNUC__)) # define SHELL_CMD "/bin/sh" # define DYNAMIC_LIB_EXT "so" # define MODULE_LIB_EXT "so" @@ -93,7 +93,11 @@ # define SHARED_OPTS "-shared" # define MODULE_OPTS "-shared" # define LINKER_FLAG_PREFIX "-Wl," +#if !defined(__sun) # define DYNAMIC_LINK_OPTS LINKER_FLAG_PREFIX "-export-dynamic" +#else +# define DYNAMIC_LINK_OPTS "" +#endif # define ADD_MINUS_L # define LD_RUN_PATH "LD_RUN_PATH" # define LD_LIBRARY_PATH "LD_LIBRARY_PATH"