Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Why does my GCC create only static executables ? (Old version of Linux)

0 views
Skip to first unread message

Kenny McCormack

unread,
Dec 25, 2000, 9:26:53 AM12/25/00
to
I have a very old installation of Linux, running Debian 1.3. It works very
well, except that the GCC only creates static executables. Note that the
system itself has dynamic executables and all the libs to support it (I.e.,
the command "ldd /bin/ls" generates the expected output). But when I
compile anything myself on this system, I get a very large executable and
ldd says it is "statically linked (ELF)".

I have no idea how this situation occurred, I've never seen it on any other
Linux system, and I'd like to know how to debug/fix it. I'd like to be able
to create normal, dynamically linked executables. Anyone have any ideas? I
still have the CD for this system, so if there is any other package to
install, I can do that.

BTW, "Upgrade to a current version of Linux" is not an option.

-ljl-

unread,
Dec 25, 2000, 4:34:46 PM12/25/00
to gaz...@interaccess.com
In article <927lfd$rfe$1...@yin.interaccess.com>,

See if somewhere in your source the -g (debug) switch is used.
Also, check out the gcc howto.

BTW: all the GNU stuff used to assume you wanted to debug their
code and therefore used the -g switch in their makefiles.

--
Louis-ljl-{ Louis J. LaBash, Jr. }


Sent via Deja.com
http://www.deja.com/

0 new messages