chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Problem compiling static executable on Mac OS X


From: Kon Lovett
Subject: Re: [Chicken-users] Problem compiling static executable on Mac OS X
Date: Wed, 4 May 2005 09:44:22 -0700

See http://developer.apple.com/qa/qa2001/qa1118.html

also in

http://developer.apple.com/documentation/DeveloperTools/gcc-4.0.0/gcc/ Link-Options.html

-static
On systems that support dynamic linking, this prevents linking with the shared libraries. On other systems, this option has no effect.

This option will not work on Mac OS X unless all libraries (including libgcc.a) have also been compiled with -static. Since neither a static version of libSystem.dylib nor crt0.o are provided, this option is not useful to most people.

Sorry,
Kon

On May 2, 2005, at 12:06 PM, Henrik Tramberend wrote:

Hi,

i seem to be unable to compile a static chicken executable on Mac OS X.

> csc -v -static static.scm
/opt/chicken/bin/chicken static.scm -output-file static.c -feature chicken-compile-static -quiet gcc static.c -o static.o -g -DHAVE_CHICKEN_CONFIG_H -c -DC_NO_PIC_NO_DLL -I /opt/chicken/include
rm static.c
gcc -o static static.o /opt/chicken/lib/libchicken.a -L/opt/chicken/lib -static -ldl -lm
/usr/bin/ld: can't locate file for: -lcrt0.o
collect2: ld returned 1 exit status
*** Shell command terminated with exit status 1: gcc -o static static.o /opt/chicken/lib/libchicken.a -L/opt/chicken/lib -static -ldl -lm

Any idea what might be wrong here?

Regards
Henrik


_______________________________________________
Chicken-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/chicken-users






reply via email to

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