sys-libs/db: move -Wl,--default-symver back after tc-ld-is-gold #566942
authorMike Frysinger <vapier@gentoo.org>
Sat, 28 Nov 2015 20:22:45 +0000 (15:22 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 28 Nov 2015 20:25:53 +0000 (15:25 -0500)
The GNU gold test will fail if given invalid linker flags, so make sure
we test for it before adding various linker flags (that assume bfd).

sys-libs/db/db-4.8.30-r2.ebuild
sys-libs/db/db-5.3.28-r2.ebuild
sys-libs/db/db-6.0.30-r1.ebuild
sys-libs/db/db-6.0.35.ebuild
sys-libs/db/db-6.1.26.ebuild

index abb91dec4812a0a6e1b2a5917ffebde680e00a51..e556706b2c02245f6f8030e4568454dbff0779fa 100644 (file)
@@ -88,16 +88,6 @@ src_prepare() {
                -e "s/__EDIT_DB_VERSION__/$DB_VERSION/g" configure || die
 }
 
-src_configure() {
-       # Add linker versions to the symbols. Easier to do, and safer than header file
-       # mumbo jumbo.
-       if use userland_GNU ; then
-               append-ldflags -Wl,--default-symver
-       fi
-
-       multilib-minimal_src_configure
-}
-
 multilib_src_configure() {
        local myconf=()
 
@@ -110,6 +100,12 @@ multilib_src_configure() {
                is-flagq -O[s123] || append-flags -O2
        fi
 
+       # Add linker versions to the symbols. Easier to do, and safer than header file
+       # mumbo jumbo.
+       if use userland_GNU ; then
+               append-ldflags -Wl,--default-symver
+       fi
+
        # use `set` here since the java opts will contain whitespace
        if multilib_is_native_abi && use java ; then
                myconf+=(
index fa3f8d6be49f2e4cb133541debd347eff337ffe3..937d045c4164f4d7dbae26758f14d4ebc057e293 100644 (file)
@@ -103,16 +103,6 @@ src_prepare() {
        done
 }
 
-src_configure() {
-       # Add linker versions to the symbols. Easier to do, and safer than header file
-       # mumbo jumbo.
-       if use userland_GNU ; then
-               append-ldflags -Wl,--default-symver
-       fi
-
-       multilib-minimal_src_configure
-}
-
 multilib_src_configure() {
        local myconf=()
 
@@ -125,6 +115,12 @@ multilib_src_configure() {
                is-flagq -O[s123] || append-flags -O2
        fi
 
+       # Add linker versions to the symbols. Easier to do, and safer than header file
+       # mumbo jumbo.
+       if use userland_GNU ; then
+               append-ldflags -Wl,--default-symver
+       fi
+
        # use `set` here since the java opts will contain whitespace
        if multilib_is_native_abi && use java ; then
                myconf+=(
index 64433d2386066c8c2c3ce4d01595da6633f4a057..8192bec05d4e09aef4ee0ad4582a853046268e83 100644 (file)
@@ -104,16 +104,6 @@ src_prepare() {
        done
 }
 
-src_configure() {
-       # Add linker versions to the symbols. Easier to do, and safer than header file
-       # mumbo jumbo.
-       if use userland_GNU ; then
-               append-ldflags -Wl,--default-symver
-       fi
-
-       multilib-minimal_src_configure
-}
-
 multilib_src_configure() {
        local myconf=()
 
@@ -126,6 +116,12 @@ multilib_src_configure() {
                is-flagq -O[s123] || append-flags -O2
        fi
 
+       # Add linker versions to the symbols. Easier to do, and safer than header file
+       # mumbo jumbo.
+       if use userland_GNU ; then
+               append-ldflags -Wl,--default-symver
+       fi
+
        # use `set` here since the java opts will contain whitespace
        if multilib_is_native_abi && use java ; then
                myconf+=(
index 357f5ac8131de6dfc72b28b300ce460cd159a835..6fcfe907e32b2f29c376c2aa93ac1f2420f3c11c 100644 (file)
@@ -104,16 +104,6 @@ src_prepare() {
        done
 }
 
-src_configure() {
-       # Add linker versions to the symbols. Easier to do, and safer than header file
-       # mumbo jumbo.
-       if use userland_GNU ; then
-               append-ldflags -Wl,--default-symver
-       fi
-
-       multilib-minimal_src_configure
-}
-
 multilib_src_configure() {
        local myconf=()
 
@@ -126,6 +116,12 @@ multilib_src_configure() {
                is-flagq -O[s123] || append-flags -O2
        fi
 
+       # Add linker versions to the symbols. Easier to do, and safer than header file
+       # mumbo jumbo.
+       if use userland_GNU ; then
+               append-ldflags -Wl,--default-symver
+       fi
+
        # use `set` here since the java opts will contain whitespace
        if multilib_is_native_abi && use java ; then
                myconf+=(
index 22cf36f227a64e98b5e778b7198796ae264a23fa..4e9a232205dee4d24ddbfde0b999c1fa6d5dfc58 100644 (file)
@@ -104,16 +104,6 @@ src_prepare() {
        done
 }
 
-src_configure() {
-       # Add linker versions to the symbols. Easier to do, and safer than header file
-       # mumbo jumbo.
-       if use userland_GNU ; then
-               append-ldflags -Wl,--default-symver
-       fi
-
-       multilib-minimal_src_configure
-}
-
 multilib_src_configure() {
        local myconf=()
 
@@ -126,6 +116,12 @@ multilib_src_configure() {
                is-flagq -O[s123] || append-flags -O2
        fi
 
+       # Add linker versions to the symbols. Easier to do, and safer than header file
+       # mumbo jumbo.
+       if use userland_GNU ; then
+               append-ldflags -Wl,--default-symver
+       fi
+
        # use `set` here since the java opts will contain whitespace
        if multilib_is_native_abi && use java ; then
                myconf+=(