XForms: Linking a pseudo-static version

Emilio Grimaldo (emilio@irdeto.nl)
Thu, 31 Jul 1997 09:55:29 +0200

To subscribers of the xforms list from Emilio Grimaldo <emilio@irdeto.nl> :

Hi,
I have run on the following problem, I wish to generate a
pseudo-static binary version of the program with an `older' library
of XForms. But the linker gives me problems with the forms library,
it complains that it cannot find any of the fl_*, if I specify a
full path it then complains about the X*, but if I link it
dynamically I have *none* of the above problems.

I am on a Solaris 2.5/Sparc using GNU C (gcc) version 2.7.2.2,
I compile/link with the following:

gcc -O2 -L/lcl/lib -g -I/lcl/include -static -lm -lsocket -lnsl \
-lX11 -lforms -o myprog myprog.c myproc_misc.c

I say `pseudo-static' because I still want the X stuff to be
dynamically linked, but have the XForms one statically linked.
How can I accomplish that?

Thanks in advance,
Emilio

-- 
  D. Emilio Grimaldo T.                       Irdeto Consultants B.V.
  Technology Control Systems (TCS)            Hoofddorp, The Netherlands
  EMAIL: emilio@irdeto.nl		      HTTP://www.irdeto.com
	 egrimald@nethold.nl		      Phone: +31 (0)23 568 6756
					      Mobile: +31 (0)6 No-Yupie
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/