llvm.org GIT mirror llvm / 1dace48
Switch to using -Wl,-R on Solaris. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65927 91177308-0d34-0410-b5e6-96231b3b80d8 Nick Lewycky 10 years ago
3 changed file(s) with 14 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
199199 # object files.
200200 OBJ_ROOT := .
201201
202 # What to pass as rpath flag to g++
203 RPATH := @RPATH@
204
202205 # These are options that can either be enabled here, or can be enabled on the
203206 # make command line (ie, make ENABLE_PROFILING=1):
204207
427427 endif
428428
429429 ifdef SHARED_LIBRARY
430 LD.Flags += -Wl,-rpath -Wl,$(LibDir)
430 LD.Flags += $(RPATH) -Wl,$(LibDir)
431431 endif
432432
433433 ifdef TOOL_VERBOSE
457457 ifneq ($(OS),Darwin)
458458 ifdef TOOLNAME
459459 ifdef EXAMPLE_TOOL
460 LD.Flags += -Wl,-rpath -Wl,$(ExmplDir) -export-dynamic
461 else
462 LD.Flags += -Wl,-rpath -Wl,$(ToolDir) -export-dynamic
460 LD.Flags += $(RPATH) -Wl,$(ExmplDir) -export-dynamic
461 else
462 LD.Flags += $(RPATH) -Wl,$(ToolDir) -export-dynamic
463463 endif
464464 endif
465465 endif
10151015 dnl Determine if the compiler supports -fvisibility-inlines-hidden.
10161016 AC_CXX_USE_VISIBILITY_INLINES_HIDDEN
10171017
1018 dnl Determine linker rpath flag
1019 case $llvm_cv_os_type in
1020 SunOS) RPATH="-Wl,-R" ;;
1021 *) RPATH="-Wl,-rpath" ;;
1022 esac
1023 AC_SUBST(RPATH)
1024
10181025 dnl===-----------------------------------------------------------------------===
10191026 dnl===
10201027 dnl=== SECTION 10: Specify the output files and generate it