Magellan Linux

Contents of /trunk/tk/patches/tk-8.5.10-flags.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2006 - (show annotations) (download)
Tue Jan 1 15:24:02 2013 UTC (11 years, 3 months ago) by niro
File size: 1096 byte(s)
-added patch to fix pic and rpath issues
1 unix/tcl.m4 | 6 +++---
2 1 file changed, 3 insertions(+), 3 deletions(-)
3
4 diff --git a/unix/tcl.m4 b/unix/tcl.m4
5 index 3974753..9c36eb5 100644
6 --- a/unix/tcl.m4
7 +++ b/unix/tcl.m4
8 @@ -1420,12 +1420,12 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
9 # get rid of the warnings.
10 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
11
12 - SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
13 + SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS} -Wl,-soname,${@}'
14 DL_OBJS="tclLoadDl.o"
15 DL_LIBS="-ldl"
16 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
17 AS_IF([test $doRpath = yes], [
18 - CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'])
19 + CC_SEARCH_FLAGS=''])
20 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
21 AS_IF([test "`uname -m`" = "alpha"], [CFLAGS="$CFLAGS -mieee"])
22 AS_IF([test $do64bit = yes], [
23 @@ -1452,7 +1452,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
24 SHLIB_CFLAGS="-fPIC"
25 SHLIB_SUFFIX=".so"
26
27 - SHLIB_LD='${CC} -shared'
28 + SHLIB_LD='${CC} ${CFLAGS} -shared'
29 DL_OBJS=""
30 DL_LIBS="-ldl"
31 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"