Hi,

On 02/12/13 23:55, Etienne Champetier wrote:
> Hi
>
> hotplug2 doesn't build (linking) when compiling with eglibc 2.15
Could you try the following patch:

Index: package/hotplug2/Makefile
===================================================================
--- package/hotplug2/Makefile    (Revision 35594)
+++ package/hotplug2/Makefile    (Arbeitskopie)
@@ -47,7 +47,7 @@
     STATIC_WORKER="fork"
 
 ifneq ($(CONFIG_USE_EGLIBC),)
-  TARGET_LDFLAGS += -lbsd
+  TARGET_LDFLAGS += -L$(STAGING_DIR)/lib -lbsd
 endif
 
 define Build/Compile

Maybe that solves you problem?

regards,
thomas
> It's a clean (make distclean) trunk with only eglibc selected (r35572)
> .config is attached.
>
>
> mips-openwrt-linux-gnu-gcc -Os -pipe -mips32r2 -mtune=mips32r2 
> -fno-caller-saves -mno-branch-likely -fhonour-copts 
> -Wno-error=unused-but-set-variable -msoft-float 
> -L/home/etienne/trunk/staging_dir/target-mips_r2_eglibc-2.15/usr/lib 
> -L/home/etienne/trunk/staging_dir/target-mips_r2_eglibc-2.15/lib 
> -L/home/etienne/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_eglibc-2.15/usr/lib
>  
> -L/home/etienne/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_eglibc-2.15/lib
>  -lbsd -o 
> /home/etienne/trunk/build_dir/target-mips_r2_eglibc-2.15/hotplug2-201/udevtrigger
>  src/udevtrigger.c
> /home/etienne/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_eglibc-2.15/lib/gcc/mips-openwrt-linux-gnu/4.6.4/../../../../mips-openwrt-linux-gnu/bin/ld:
>  cannot find -lbsd
> collect2: ld returned 1 exit status
> make[3]: *** 
> [/home/etienne/trunk/build_dir/target-mips_r2_eglibc-2.15/hotplug2-201/.built]
>  Error 1
>
>
>
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to