Skip to content

Commit

Permalink
Better sun fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Nov 30, 2015
1 parent dc160f6 commit c1f495d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/jlibtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit c1f495d

Please sign in to comment.