<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>149653</bug_id>
          
          <creation_ts>2006-09-30 13:52 0000</creation_ts>
          <short_desc>sys-block/nbd-2.8.6 fails with -Wl,--as-needed</short_desc>
          <delta_ts>2006-09-30 14:41:39 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>129413</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>dberkholz@gentoo.org</reporter>
          <assigned_to>base-system@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>dberkholz@gentoo.org</who>
            <bug_when>2006-09-30 13:52:52 0000</bug_when>
            <thetext>files/nbd-2.8.2-gznbd.patch should have LDFLAGS after the object.

+   $(CC) $(CFLAGS) $&lt; -o $@ $(LDFLAGS)

rather than before

+   $(CC) $(CFLAGS) $(LDFLAGS) $&lt; -o $@</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2006-09-30 13:56:29 0000</bug_when>
            <thetext>erm, not quite ... problem is that LDFLAGS should not contain libs</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dberkholz@gentoo.org</who>
            <bug_when>2006-09-30 13:58:52 0000</bug_when>
            <thetext>Fix it up however you want, this worked for me. Make a new LIBS var if you like for -lz, and tag that after.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2006-09-30 14:02:46 0000</bug_when>
            <thetext>fixed patch to use LDLIBS and to use implicit make rules (which handles LDFLAGS/LDLIBS ordering)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dberkholz@gentoo.org</who>
            <bug_when>2006-09-30 14:41:39 0000</bug_when>
            <thetext>Great, thanks!</thetext>
          </long_desc>
      
    </bug>

</bugzilla>