Personally I'd be inclined to put libraries at the end of the link order... 
since 'ld' will use the first match it finds... putting the libraries last 
gives the user the opportunity to explicitly override any library symbols.


On 7/5/11 4:10 PM, [email protected] wrote:
> Author: cshore
> Date: 2011-07-06 01:10:47 +0200 (Wed, 06 Jul 2011)
> New Revision: 27466
> 
> Added:
>    trunk/package/e2fsprogs/patches/
>    trunk/package/e2fsprogs/patches/100_add_missing_libpthread_for_blkid
> Log:
> [package] e2fsprogs: Added libpthread back to blkid link, otherwise blkid 
> fails to link)
> 
> Added: trunk/package/e2fsprogs/patches/100_add_missing_libpthread_for_blkid
> ===================================================================
> --- trunk/package/e2fsprogs/patches/100_add_missing_libpthread_for_blkid      
>                         (rev 0)
> +++ trunk/package/e2fsprogs/patches/100_add_missing_libpthread_for_blkid      
> 2011-07-05 23:10:47 UTC (rev 27466)
> @@ -0,0 +1,11 @@
> +--- a/lib/blkid/Makefile.in
> ++++ b/lib/blkid/Makefile.in
> +@@ -126,7 +126,7 @@ tst_types: tst_types.o blkid_types.h
> + 
> + blkid: ../../misc/blkid.o libblkid.a $(DEPLIBUUID)
> +     $(E) "  LD $@"
> +-    $(Q) $(CC) -o blkid ../../misc/blkid.o libblkid.a $(LIBUUID)
> ++    $(Q) $(CC) -lpthread -o blkid ../../misc/blkid.o libblkid.a $(LIBUUID)
> + 
> + test_probe: test_probe.in Makefile
> +     $(E) "Creating test_probe..."
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to