Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Darcy L. Watkins <dwatkins@tranzeo.com>
To: buildroot@busybox.net
Subject: [Buildroot] [May15 patch 12/12] netsnmp: disable build with external toolchain
Date: Wed, 23 Jun 2010 11:25:45 -0700	[thread overview]
Message-ID: <1277317545.21423.117.camel@localhost.localdomain> (raw)
In-Reply-To: <1277307031.18561.19.camel@localhost.localdomain>

Hello,

The patch below appears to get net-snmp to build OK (at least in my
environment using crosstool-ng).  It is a bit of a hack/kludge since it
is basically saying, "just in case you don't understand the --sysroot
directive, here are some redundant -I and -L directives to include with
CFLAGS and LDFLAGS to point to the staging area includes and libraries."


Regards,

Darcy

------


signed-off-by: Darcy Watkins <dwatkins@tranzeo.com>
Index: buildroot-2010.02_x86/package/Makefile.in
===================================================================
--- buildroot-2010.02_x86.orig/package/Makefile.in
+++ buildroot-2010.02_x86/package/Makefile.in
@@ -92,8 +92,10 @@ TARGET_CXXFLAGS=$(TARGET_CFLAGS)
 #########################################################################
 else
 TARGET_CFLAGS=$(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING) --sysroot $(STAGING_DIR)/
+TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
 TARGET_CXXFLAGS=$(TARGET_CFLAGS)
 TARGET_LDFLAGS=--sysroot $(STAGING_DIR)/
+TARGET_LDFLAGS+=-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib
 endif
 #########################################################################
 #ifeq ($(BR2_ROOTFS_SUFFIX),)

      reply	other threads:[~2010-06-23 18:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-22 14:16 [Buildroot] [May15 patch 12/12] netsnmp: disable build with external toolchain Darcy L. Watkins
2010-06-23 15:30 ` Darcy L. Watkins
2010-06-23 18:25   ` Darcy L. Watkins [this message]

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=1277317545.21423.117.camel@localhost.localdomain \
    --to=dwatkins@tranzeo.com \
    --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