For short time add another fPIC option.
This commit is contained in:
parent
5f32a89236
commit
3d5ba1ac24
|
@ -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
|
5
tcl.spec
5
tcl.spec
|
@ -19,6 +19,7 @@ Provides: tcl-tcldict = %{vers}
|
||||||
Patch0: tcl-8.5.1-autopath.patch
|
Patch0: tcl-8.5.1-autopath.patch
|
||||||
Patch1: tcl-8.5.0-conf.patch
|
Patch1: tcl-8.5.0-conf.patch
|
||||||
Patch2: tcl-8.5.0-hidden.patch
|
Patch2: tcl-8.5.0-hidden.patch
|
||||||
|
Patch3: pic.patch
|
||||||
|
|
||||||
%if %sdt
|
%if %sdt
|
||||||
BuildRequires: systemtap-sdt-devel
|
BuildRequires: systemtap-sdt-devel
|
||||||
|
@ -56,6 +57,7 @@ chmod -x generic/tclThreadAlloc.c
|
||||||
%patch0 -p1 -b .autopath
|
%patch0 -p1 -b .autopath
|
||||||
%patch1 -p1 -b .conf
|
%patch1 -p1 -b .conf
|
||||||
%patch2 -p1 -b .hidden
|
%patch2 -p1 -b .hidden
|
||||||
|
%patch3 -p1 -b .next_pic
|
||||||
|
|
||||||
%build
|
%build
|
||||||
pushd unix
|
pushd unix
|
||||||
|
@ -64,7 +66,8 @@ autoconf
|
||||||
%if %sdt
|
%if %sdt
|
||||||
--enable-dtrace \
|
--enable-dtrace \
|
||||||
%endif
|
%endif
|
||||||
--disable-threads
|
--disable-threads \
|
||||||
|
--enable-symbols
|
||||||
|
|
||||||
make %{?_smp_mflags} TCL_LIBRARY=%{_datadir}/%{name}%{majorver}
|
make %{?_smp_mflags} TCL_LIBRARY=%{_datadir}/%{name}%{majorver}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue