Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo User (http://www.linux-archive.org/gentoo-user/)
-   -   Change linking order of -lpopt (http://www.linux-archive.org/gentoo-user/524333-change-linking-order-lpopt.html)

Ryan Finnie 05-10-2011 12:38 AM

Change linking order of -lpopt
 
Recent binutils apparently care about the linking order. Reorder the
checkisomd5/implantisomd5 targets to put -lpopt at the end to avoid
compile failure. (Ubuntu Bug#771038)

Signed-off-by: Ryan Finnie <ryan@finnie.org>
---
Makefile | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 2ed24a5..8d61b4c 100644
--- a/Makefile
+++ b/Makefile
@@ -24,10 +24,10 @@ all: implantisomd5 checkisomd5 pyisomd5sum.so libimplantisomd5.a libcheckisomd5.
$(CC) -c -O $(CFLAGS) -o $@ $<

implantisomd5: implantisomd5.o libimplantisomd5.a
- $(CC) -lpopt $(CFLAGS) implantisomd5.o libimplantisomd5.a -o implantisomd5
+ $(CC) $(CFLAGS) implantisomd5.o libimplantisomd5.a -lpopt -o implantisomd5

checkisomd5: checkisomd5.o libcheckisomd5.a
- $(CC) -lpopt $(CFLAGS) checkisomd5.o libcheckisomd5.a -o checkisomd5
+ $(CC) $(CFLAGS) checkisomd5.o libcheckisomd5.a -lpopt -o checkisomd5

libimplantisomd5.a: libimplantisomd5.a(libimplantisomd5.o md5.o)

--
1.5.6.5

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 05:10 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.