From: bugzilla at busybox.net <bugzilla@busybox.net>
To: buildroot@busybox.net
Subject: [Buildroot] [Bug 5150] New: iproute2 does not include the LDFLAGS in the mk
Date: Fri, 27 Apr 2012 15:02:15 +0000 (UTC) [thread overview]
Message-ID: <bug-5150-163@https.bugs.busybox.net/> (raw)
https://bugs.busybox.net/show_bug.cgi?id=5150
Summary: iproute2 does not include the LDFLAGS in the mk
Product: buildroot
Version: 2012.02
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: korkakak at gmail.com
CC: buildroot at uclibc.org
Estimated Hours: 0.0
The error is the following:
/bin/sed -i -e 's/$(CCOPTS)//'
/home/user/buildroot/output/build/iproute2-2.6.39/netem/Makefile
/usr/bin/make -j8 CC="/home/user/buildroot/output/host/usr/bin/ccache
/home/user/buildroot/output/host/usr/bin/mips-linux-gnu-gcc" CCOPTS="-pipe -EL
-march=m14kc -mmcu -I/home/user/RHEA_II//linux-2.6.x -O3 -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE" -C
/home/user/buildroot/output/build/iproute2-2.6.39
make[1]: Entering directory `/home/user/buildroot/output/build/iproute2-2.6.39'
make[2]: Entering directory
`/home/user/buildroot/output/build/iproute2-2.6.39/lib'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/user/buildroot/output/build/iproute2-2.6.39/lib'
make[2]: Entering directory
`/home/user/buildroot/output/build/iproute2-2.6.39/ip'
/home/user/buildroot/output/host/usr/bin/ccache
/home/user/buildroot/output/host/usr/bin/mips-linux-gnu-gcc -Wl,-export-dynamic
ip.o ipaddress.o ipaddrlabel.o iproute.o iprule.o rtm_map.o iptunnel.o
ip6tunnel.o tunnel.o ipneigh.o ipntable.o iplink.o ipmaddr.o ipmonitor.o
ipmroute.o ipprefix.o iptuntap.o ipxfrm.o xfrm_state.o xfrm_policy.o
xfrm_monitor.o iplink_vlan.o link_veth.o link_gre.o iplink_can.o
iplink_macvlan.o iplink_macvtap.o ../lib/libnetlink.a ../lib/libutil.a
-lresolv ../lib/libnetlink.a ../lib/libutil.a -ldl -o ip
/home/user/buildroot/output/host/usr/bin/ccache
/home/user/buildroot/output/host/usr/bin/mips-linux-gnu-gcc -Wl,-export-dynamic
rtmon.o ../lib/libnetlink.a ../lib/libutil.a -lresolv ../lib/libnetlink.a
../lib/libutil.a -ldl -o rtmon
/home/user/buildroot/output/host/usr/mipsel-unknown-linux-gnu/sysroot/soft-float/usr/lib/libresolv.so:
could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [rtmon] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/user/buildroot/output/host/usr/mipsel-unknown-linux-gnu/sysroot/soft-float/usr/lib/libresolv.so:
could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [ip] Error 1
FIX:
diff --git a/package/iproute2/iproute2.mk b/package/iproute2/iproute2.mk
index dd2506c..790b891 100644
--- a/package/iproute2/iproute2.mk
+++ b/package/iproute2/iproute2.mk
@@ -35,7 +35,7 @@ endef
define IPROUTE2_BUILD_CMDS
$(SED) 's/$$(CCOPTS)//' $(@D)/netem/Makefile
- $(MAKE) CC="$(TARGET_CC)" CCOPTS="$(TARGET_CFLAGS) -D_GNU_SOURCE" -C
$(@D)
+ $(MAKE) CC="$(TARGET_CC)" CCOPTS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D)
endef
define IPROUTE2_INSTALL_TARGET_CMDS
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
next reply other threads:[~2012-04-27 15:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-27 15:02 bugzilla at busybox.net [this message]
2012-05-03 20:33 ` [Buildroot] [Bug 5150] iproute2 does not include the LDFLAGS in the mk bugzilla at busybox.net
2012-05-11 10:38 ` bugzilla at busybox.net
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-5150-163@https.bugs.busybox.net/ \
--to=bugzilla@busybox.net \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox