Check-in [e7e20d5486]
Overview
Comment:Updated autoconf macro to deal with RPATH better
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | tls-1-7
Files: files | file ages | folders
SHA1: e7e20d548685b78ec4a1924ff476cffe5f1de293
User & Date: rkeene on 2016-12-07 18:19:31
Other Links: branch diff | manifest | tags
Context
2016-12-07
18:45
Updated to latest remote shobj.m4 check-in: ebc8167da3 user: rkeene tags: tls-1-7
18:19
Updated autoconf macro to deal with RPATH better check-in: e7e20d5486 user: rkeene tags: tls-1-7
18:12
Updated to set RPATH by default for non-static builds check-in: 0d87394f84 user: rkeene tags: tls-1-7
Changes
79
80
81
82
83
84
85

86
87
88
89
90
91
92

93
94
95
96
97
98
99
    SHLIBOBJS="$SHLIBOBJS `echo $obj | sed 's/\.o$/_shr.o/g'`"
  done
])

AC_DEFUN([DC_SYNC_RPATH], [
  OLD_LDFLAGS="$LDFLAGS"


  for tryrpath in "-Wl,-rpath" "-Wl,--rpath" "-Wl,-R"; do
    LDFLAGS="$OLD_LDFLAGS $tryrpath -Wl,/tmp"
    AC_LINK_IFELSE(AC_LANG_PROGRAM([], [ return(0); ]), [
      rpathldflags="$tryrpath"
      break
    ])
  done

  unset tryrpath

  LDFLAGS="$OLD_LDFLAGS"
  unset OLD_LDFLAGS

  ADDLDFLAGS=""
  for opt in $LDFLAGS; do







>


|




>







79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
    SHLIBOBJS="$SHLIBOBJS `echo $obj | sed 's/\.o$/_shr.o/g'`"
  done
])

AC_DEFUN([DC_SYNC_RPATH], [
  OLD_LDFLAGS="$LDFLAGS"

  AC_LANG_PUSH(C)
  for tryrpath in "-Wl,-rpath" "-Wl,--rpath" "-Wl,-R"; do
    LDFLAGS="$OLD_LDFLAGS $tryrpath -Wl,/tmp"
    AC_LINK_IFELSE([AC_LANG_PROGRAM([], [ return(0); ])], [
      rpathldflags="$tryrpath"
      break
    ])
  done
  AC_LANG_POP(C)
  unset tryrpath

  LDFLAGS="$OLD_LDFLAGS"
  unset OLD_LDFLAGS

  ADDLDFLAGS=""
  for opt in $LDFLAGS; do