From 3d5ba1ac24e7c36c9d54b621758dd2a87217cb5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcela=20Ma=C5=A1l=C3=A1=C5=88ov=C3=A1?= Date: Fri, 17 Jul 2009 06:52:32 +0000 Subject: [PATCH] For short time add another fPIC option. --- pic.patch | 12 ++++++++++++ tcl.spec | 5 ++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 pic.patch diff --git a/pic.patch b/pic.patch new file mode 100644 index 0000000..a62b1a5 --- /dev/null +++ b/pic.patch @@ -0,0 +1,12 @@ +diff -up tcl8.5.7/unix/Makefile.in.old tcl8.5.7/unix/Makefile.in +--- tcl8.5.7/unix/Makefile.in.old 2009-04-15 21:30:05.000000000 +0200 ++++ tcl8.5.7/unix/Makefile.in 2009-07-16 08:27:32.758444459 +0200 +@@ -569,7 +569,7 @@ objs: ${OBJS} + + + tclsh: ${TCLSH_OBJS} ${TCL_LIB_FILE} +- ${CC} ${CFLAGS} ${LDFLAGS} ${TCLSH_OBJS} @TCL_BUILD_LIB_SPEC@ ${LIBS} @EXTRA_TCLSH_LIBS@ \ ++ ${CC} ${CFLAGS} ${LDFLAGS} -fPIC ${TCLSH_OBJS} @TCL_BUILD_LIB_SPEC@ ${LIBS} @EXTRA_TCLSH_LIBS@ \ + ${CC_SEARCH_FLAGS} -o tclsh + + # Resetting the LIB_RUNTIME_DIR below is required so that the generated diff --git a/tcl.spec b/tcl.spec index 24b2961..aaf015b 100644 --- a/tcl.spec +++ b/tcl.spec @@ -19,6 +19,7 @@ Provides: tcl-tcldict = %{vers} Patch0: tcl-8.5.1-autopath.patch Patch1: tcl-8.5.0-conf.patch Patch2: tcl-8.5.0-hidden.patch +Patch3: pic.patch %if %sdt BuildRequires: systemtap-sdt-devel @@ -56,6 +57,7 @@ chmod -x generic/tclThreadAlloc.c %patch0 -p1 -b .autopath %patch1 -p1 -b .conf %patch2 -p1 -b .hidden +%patch3 -p1 -b .next_pic %build pushd unix @@ -64,7 +66,8 @@ autoconf %if %sdt --enable-dtrace \ %endif ---disable-threads +--disable-threads \ +--enable-symbols make %{?_smp_mflags} TCL_LIBRARY=%{_datadir}/%{name}%{majorver}