[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Darwin C++ breaks -Wl
From: |
Ben Hines |
Subject: |
Darwin C++ breaks -Wl |
Date: |
Fri, 6 Dec 2002 21:26:35 -0800 |
The darwin C++ patch breaks -Wl, options, it causes them to get passed
to the compiler instead of the linker:
/bin/sh ../libtool --mode=link gcc -g -O2 -g -Wall
-Wmissing-declarations -Wmissing-prototypes -Wl,-stack_size
-Wl,4048000 -g -Wall -o libgphoto2_port.la -rpath /sw/lib -version-info
5:1:5 gphoto2-port-info-list.lo gphoto2-port-log.lo
gphoto2-port-version.lo gphoto2-port.lo gphoto2-port-portability.lo
gphoto2-port-result.lo -ldl /sw/lib/libintl.dylib
/sw/lib/libiconv.dylib -lintl
mkdir .libs
rm -fr .libs/libgphoto2_port.la .libs/libgphoto2_port.*
.libs/libgphoto2_port.*
(cd . && ln -s gphoto2-port-info-list.lo gphoto2-port-info-list.o)
(cd . && ln -s gphoto2-port-log.lo gphoto2-port-log.o)
(cd . && ln -s gphoto2-port-version.lo gphoto2-port-version.o)
(cd . && ln -s gphoto2-port.lo gphoto2-port.o)
(cd . && ln -s gphoto2-port-portability.lo gphoto2-port-portability.o)
(cd . && ln -s gphoto2-port-result.lo gphoto2-port-result.o)
gcc -r -keep_private_externs -nostdlib -o
.libs/libgphoto2_port.0.5.1.dylib-master.o gphoto2-port-info-list.lo
gphoto2-port-log.lo gphoto2-port-version.lo gphoto2-port.lo
gphoto2-port-portability.lo gphoto2-port-result.lo && gcc -dynamiclib
-flat_namespace -undefined suppress -o
.libs/libgphoto2_port.0.5.1.dylib
.libs/libgphoto2_port.0.5.1.dylib-master.o -ldl -L/sw/lib -lintl -lc
-stack_size 4048000 -install_name /sw/lib/libgphoto2_port.0.dylib
-compatibility_version 6 -current_version 6.1
gcc: 4048000: No such file or directory
gcc: unrecognized option `-stack_size'
When calling "gcc", you need "-Wl,-stack_size", but libtool thinks it
is calling the linker so apparently strips that.
Also, the new developer tools have an option "-single_modle". We should
add a check for apple version of gcc 1173 (or ld) and use that instead
of using the ld -r trickery.
-Ben
- Darwin C++ breaks -Wl,
Ben Hines <=