This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problems while statically linking with libguile


Good evening,
Is it possible at all to statically link an application that uses
libguile?
If no, what is libguile.a for?
Doing the following:
gcc  -o my_binary ob1.o ob2.o  -static -lforms -dynamic -lXpm \
  -L/usr/X11R6/lib -L/usr/local/lib -lX11  -lm -lguile -ldl -lreadline\
   -L/usr/lib/curses -lcurses

gets compensated with this:
/usr/i486-linux/bin/ld: cannot open -ldl: No such file or directory

I am only able to either link dynamically (without -static), or build a
pseudo-static binary without Guile support (there is then no -ld
thingie).
Tano Fotang.