1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

Switch to using -Wl,-R on Solaris.

llvm-svn: 65927
This commit is contained in:
Nick Lewycky 2009-03-03 04:55:15 +00:00
parent 16799e4e7c
commit 28f2571059
3 changed files with 13 additions and 3 deletions

View File

@ -200,6 +200,9 @@ LLVMGCC_LANGS := @LLVMGCC_LANGS@
# object files. # object files.
OBJ_ROOT := . OBJ_ROOT := .
# What to pass as rpath flag to g++
RPATH := @RPATH@
# These are options that can either be enabled here, or can be enabled on the # These are options that can either be enabled here, or can be enabled on the
# make command line (ie, make ENABLE_PROFILING=1): # make command line (ie, make ENABLE_PROFILING=1):

View File

@ -428,7 +428,7 @@ ifdef LOADABLE_MODULE
endif endif
ifdef SHARED_LIBRARY ifdef SHARED_LIBRARY
LD.Flags += -Wl,-rpath -Wl,$(LibDir) LD.Flags += $(RPATH) -Wl,$(LibDir)
endif endif
ifdef TOOL_VERBOSE ifdef TOOL_VERBOSE
@ -458,9 +458,9 @@ endif
ifneq ($(OS),Darwin) ifneq ($(OS),Darwin)
ifdef TOOLNAME ifdef TOOLNAME
ifdef EXAMPLE_TOOL ifdef EXAMPLE_TOOL
LD.Flags += -Wl,-rpath -Wl,$(ExmplDir) -export-dynamic LD.Flags += $(RPATH) -Wl,$(ExmplDir) -export-dynamic
else else
LD.Flags += -Wl,-rpath -Wl,$(ToolDir) -export-dynamic LD.Flags += $(RPATH) -Wl,$(ToolDir) -export-dynamic
endif endif
endif endif
endif endif

View File

@ -1016,6 +1016,13 @@ fi
dnl Determine if the compiler supports -fvisibility-inlines-hidden. dnl Determine if the compiler supports -fvisibility-inlines-hidden.
AC_CXX_USE_VISIBILITY_INLINES_HIDDEN AC_CXX_USE_VISIBILITY_INLINES_HIDDEN
dnl Determine linker rpath flag
case $llvm_cv_os_type in
SunOS) RPATH="-Wl,-R" ;;
*) RPATH="-Wl,-rpath" ;;
esac
AC_SUBST(RPATH)
dnl===-----------------------------------------------------------------------=== dnl===-----------------------------------------------------------------------===
dnl=== dnl===
dnl=== SECTION 10: Specify the output files and generate it dnl=== SECTION 10: Specify the output files and generate it