[Buildroot] [May15 patch 12/12] netsnmp: disable build with external toolchain

Darcy L. Watkins dwatkins at tranzeo.com
Wed Jun 23 18:25:45 UTC 2010


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 at 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),)







More information about the buildroot mailing list