For short time add another fPIC option.

This commit is contained in:
Marcela Mašláňová 2009-07-17 06:52:32 +00:00
parent 5f32a89236
commit 3d5ba1ac24
2 changed files with 16 additions and 1 deletions

12
pic.patch Normal file
View File

@ -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

View File

@ -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}