discuss-gnustep
[Top][All Lists]
Advanced

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

GNUstep static compilation?


From: Pablo Di Noto
Subject: GNUstep static compilation?
Date: Sat, 20 Aug 2005 01:34:59 -0300
User-agent: Debian Thunderbird 1.0.6 (X11/20050802)

Hi,

I have a simple GNUstep application which I would like to build statically. With that I mean have a single -huge, I know- executable file with no runtime dependencies.

Is that feasible?

I tried to build a static version of gnustep-base-1.11.0 on Linux (kernel 2.6, Debian unstable distribution, gcc 4.0.2) but that fails with lots of errors like

../Source/./static_obj/libgnustep-base_s.a(GSFileHandle.o): In function 
`_i_GSFileHandle__readToEndOfFileInBackgroundAndNotifyForModes_':
GSFileHandle.m:(.text+0x16f0): undefined reference to `objc_get_class'
GSFileHandle.m:(.text+0x16ff): undefined reference to `objc_msg_lookup'
GSFileHandle.m:(.text+0x1718): undefined reference to `objc_msg_lookup'
GSFileHandle.m:(.text+0x1737): undefined reference to `objc_msg_lookup'
GSFileHandle.m:(.text+0x175a): undefined reference to `objc_get_class'

which I undestand as a problem linking objc-runtime.

Do I need to build a complete static toolchain?
Any help/pointers appreciated!

///Pablo




reply via email to

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