[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to pass --start-group ... --end-group ?

From: Alexandr Nozdrin
Subject: How to pass --start-group ... --end-group ?
Date: Fri, 11 Jan 2002 14:59:38 +0300
User-agent: Mutt/1.2.5i


I need to link executable as following:

gcc -o out m1.o m2.o --start-group -l1 -l2 --end-group -l3 -l4

I wrote (in real, it's generated by automake, but it is not important):

libtool --mode=link g++ -g -Wall -LXXX -o out module.o -Wl,--start-group lib2.a lib4.a -Wl,--end-group -lxxx 

But libtool calls g++ as following:

g++ -g -Wall -o out module.o -Wl,--start-group -Wl,--end-group
-LXXX lib...

How I can to move options --start-group/--end-group in right place?


Best regards,
  Alexandr Nozdrin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]