-static is a linker flag. Most Makefiles have a LDFLAGS section. Add it there. If not, find a -l or -L and add it to the end of that.
Sudhakar Chandrasekharan wrote: > > Where do I add the '-static' (or is it -B static?) flag in the following > line? > > gcc -o foo -02 -fno-strength-reduce -L/usr/X11R6/lib bar.o blat.o -lXm -lXt > -lSM -lICE -lXext -lX11 > > I want motif to be statically compiled. > > S. > -- > "If a gun can protect something as important as a bar, it is good > enough to protect my family." -- Homer J. Simpson > Sudhakar C13n International Websites Engineer > http://people.netscape.com/thaths/ > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- ----------------------------------------------- How can you see, when your mind is not open? How can you think, when your eyes are closed? - Jason Bonham Band, "Ordinary Black and White" ----------------------------------------------- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]