tokyocabinet/tokyocabinet-fedora.patch

64 lines
2.4 KiB
Diff
Raw Normal View History

2009-01-13 23:31:55 +00:00
--- configure.in 2008-12-27 05:21:45.000000000 -0500
+++ configure.in.new 2009-01-13 18:16:44.000000000 -0500
@@ -31,26 +31,14 @@
2007-11-29 22:34:36 +00:00
MYPCFILES="tokyocabinet.pc"
# Building flags
-MYCFLAGS="-std=c99 -Wall -fPIC -fsigned-char -O2"
2009-01-13 23:31:55 +00:00
-MYCPPFLAGS="-I. -I\$(INCLUDEDIR) -I$HOME/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1"
2007-11-29 22:34:36 +00:00
-MYLDFLAGS="-L. -L\$(LIBDIR) -L$HOME/lib -L/usr/local/lib"
+MYCFLAGS="-std=c99 -Wall -fPIC -fsigned-char $CFLAGS"
+MYCPPFLAGS="-I. -I\$(INCLUDEDIR) -DNDEBUG -D_GNU_SOURCE=1"
+MYLDFLAGS="-L. -L\$(LIBDIR)"
2009-01-13 23:31:55 +00:00
MYCMDLDFLAGS=""
2007-11-29 22:34:36 +00:00
MYRUNPATH="\$(LIBDIR)"
MYLDLIBPATHENV="LD_LIBRARY_PATH"
MYPOSTCMD="true"
-# Building paths
-pathtmp="$PATH"
-PATH="$HOME/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
-PATH="$PATH:/usr/ccs/bin:/usr/ucb:/usr/xpg4/bin:/usr/xpg6/bin:$pathtmp"
2009-01-13 23:31:55 +00:00
-CPATH="$HOME/include:/usr/local/include:$CPATH"
2007-11-29 22:34:36 +00:00
-LIBRARY_PATH="$HOME/lib:/usr/local/lib:$LIBRARY_PATH"
-LD_LIBRARY_PATH="$HOME/lib:/usr/local/lib:$LD_LIBRARY_PATH"
-PKG_CONFIG_PATH="$HOME/lib/pkgconfig:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"
2009-01-13 23:31:55 +00:00
-export PATH CPATH LIBRARY_PATH LD_LIBRARY_PATH PKG_CONFIG_PATH
2007-11-29 22:34:36 +00:00
-
-
-
#================================================================
# Options
#================================================================
2009-01-13 23:31:55 +00:00
@@ -103,7 +91,7 @@
2007-11-29 22:34:36 +00:00
AC_HELP_STRING([--enable-fastest], [build for fastest run]))
if test "$enable_fastest" = "yes"
then
- MYCFLAGS="-std=c99 -Wall -fPIC -pedantic -fsigned-char -O3"
+ MYCFLAGS="-std=c99 -Wall -fPIC -pedantic -fsigned-char $CFLAGS -O3"
MYCFLAGS="$MYCFLAGS -fomit-frame-pointer -fforce-addr -minline-all-stringops"
MYCPPFLAGS="$MYCPPFLAGS -D_MYFASTEST"
enables="$enables (fastest)"
2009-01-13 23:31:55 +00:00
--- Makefile.in 2008-12-22 12:02:44.000000000 -0500
+++ Makefile.in.new 2009-01-13 18:17:54.000000000 -0500
@@ -54,8 +54,8 @@
2007-11-29 22:34:36 +00:00
LDFLAGS = @MYLDFLAGS@
2009-01-13 23:31:55 +00:00
CMDLDFLAGS = @MYCMDLDFLAGS@
2007-11-29 22:34:36 +00:00
LIBS = @LIBS@
-LDENV = LD_RUN_PATH=/lib:/usr/lib:$(LIBDIR):$(HOME)/lib:/usr/local/lib:@MYRUNPATH@:.
-RUNENV = @MYLDLIBPATHENV@=.:/lib:/usr/lib:$(LIBDIR):$(HOME)/lib:/usr/local/lib:@MYRUNPATH@
+LDENV =
+RUNENV = @MYLDLIBPATHENV@=.:$(LIBDIR)
POSTCMD = @MYPOSTCMD@
2009-01-13 23:31:55 +00:00
--- tokyocabinet.pc.in 2008-02-18 02:25:18.000000000 -0500
+++ tokyocabinet.pc.in.new 2009-01-13 18:18:52.000000000 -0500
@@ -10,5 +10,5 @@
2007-11-29 22:34:36 +00:00
Name: Tokyo Cabinet
Description: a modern implementation of DBM
Version: @PACKAGE_VERSION@
-Libs: -L${libdir} -ltokyocabinet @LIBS@
+Libs: -L${libdir} -ltokyocabinet
Cflags: -I${includedir}