public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-tcltk/blt/files: blt-2.4z-gbsd.patch
@ 2012-05-10 16:56 Alexis Ballier (aballier)
  0 siblings, 0 replies; only message in thread
From: Alexis Ballier (aballier) @ 2012-05-10 16:56 UTC (permalink / raw
  To: gentoo-commits

aballier    12/05/10 16:56:19

  Added:                blt-2.4z-gbsd.patch
  Log:
  Fix build on Gentoo/FreeBSD by detecting it correctly.
  
  (Portage version: 2.2.0_alpha103/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  dev-tcltk/blt/files/blt-2.4z-gbsd.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-tcltk/blt/files/blt-2.4z-gbsd.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-tcltk/blt/files/blt-2.4z-gbsd.patch?rev=1.1&content-type=text/plain

Index: blt-2.4z-gbsd.patch
===================================================================
Detect correctly Gentoo/*BSD CHOSTS:
- *-*-freebsd* means tcl/tk libs will be like libtcl85.so, instead of
  libtcl8.5.so
- *-gentoo-*bsd means this is a Gentoo/*BSD system which uses the same toolchain
  as linux, so we link in the same way.

--- blt2.4z-8.5.2/configure.old	2012-05-06 18:11:45.000000000 -0400
+++ blt2.4z-8.5.2/configure	2012-05-06 18:15:25.000000000 -0400
@@ -3376,7 +3376,7 @@
 fi
 
 case $target in
-  *-sunos4*|*-*-netbsd|NetBSD-*|FreeBSD-*|OpenBSD-*|*-*-cygwin*|*-*-mingw*)
+  *-sunos4*|*-*-netbsd|NetBSD-*|FreeBSD-*|*-*-freebsd*|OpenBSD-*|*-*-cygwin*|*-*-mingw*)
     TCL_LIB_NAME="tcl${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}"
     TK_LIB_NAME="tk${TK_MAJOR_VERSION}${TK_MINOR_VERSION}"
     ;;
@@ -4079,6 +4079,12 @@
     EXTRA_LIB_SPECS="-ldl"
     ;;
 
+  *-gentoo-netbsd*|*-gentoo-freebsd*|*-gentoo-openbsd*)
+    SHLIB_CFLAGS="-fPIC"
+    SHLIB_LD="${CC}"
+    SHLIB_LD_FLAGS='-rdynamic -shared -Wl,-E -Wl,-soname,$@'
+    ;;
+
   *-netbsd*|*-freebsd*|*-openbsd*)
     # Not available on all versions:  check for include file.
     ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
--- blt2.4z-8.5.2/configure.in.old	2012-05-06 18:11:47.000000000 -0400
+++ blt2.4z-8.5.2/configure.in	2012-05-06 18:15:08.000000000 -0400
@@ -708,7 +708,7 @@
 fi
 
 case $target in
-  *-sunos4*|*-*-netbsd|NetBSD-*|FreeBSD-*|OpenBSD-*|*-*-cygwin*|*-*-mingw*)
+  *-sunos4*|*-*-netbsd|NetBSD-*|FreeBSD-*|*-*-freebsd*|OpenBSD-*|*-*-cygwin*|*-*-mingw*)
     TCL_LIB_NAME="tcl${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}"
     TK_LIB_NAME="tk${TK_MAJOR_VERSION}${TK_MINOR_VERSION}"
     ;;
@@ -1241,6 +1241,12 @@
     EXTRA_LIB_SPECS="-ldl"
     ;;
 
+  *-gentoo-netbsd*|*-gentoo-freebsd*|*-gentoo-openbsd*)
+    SHLIB_CFLAGS="-fPIC"
+    SHLIB_LD="${CC}"
+    SHLIB_LD_FLAGS='-rdynamic -shared -Wl,-E -Wl,-soname,$@'
+    ;;
+
   *-netbsd*|*-freebsd*|*-openbsd*)
     # Not available on all versions:  check for include file.
     AC_CHECK_HEADER(dlfcn.h, test_ok=yes, test_ok=no)






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-05-10 16:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-10 16:56 [gentoo-commits] gentoo-x86 commit in dev-tcltk/blt/files: blt-2.4z-gbsd.patch Alexis Ballier (aballier)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox