Hi misc,

i'm stumped and my makefile foo is not up to par. i need some help to
figure this out.

i'm trying to make picoLisp run on openbsd 4.7. the common gcc
invocation looks like:

gcc -c -O2 -m32 -pipe -falign-functions -fomit-frame-pointer
-fno-strict-aliasing -W -Wimplicit -Wreturn-type -Wunused -Wformat
-Wuninitialized -Wstrict-prototypes -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64 -D_OS='"OpenBSD"' net.c

it loads a dynamic library ht.o and links it as so (i'm not so sure if
it is linking, my apologies):

gcc -o ../lib/ht -m32 -shared -export-dynamic ht.o

i was asking around and the suspect is the flags used by gcc -o. are
the gcc -o flags correct? what's missing?

any pointers would be of great help. the full make output follows:

gcc -c -O2 -m32 -pipe -falign-functions -fomit-frame-pointer
-fno-strict-aliasing -W -Wimplicit -Wre
turn-type -Wunused -Wformat -Wuninitialized -Wstrict-prototypes
-D_GNU_SOURCE  -D_FILE_OFFSET_BITS=6
4 -D_OS='"OpenBSD"' main.c
gcc -c -O2 -m32 -pipe -falign-functions -fomit-frame-pointer
-fno-strict-aliasing -W -Wimplicit -Wre
turn-type -Wunused -Wformat -Wuninitialized -Wstrict-prototypes
-D_GNU_SOURCE  -D_FILE_OFFSET_BITS=6
4 -D_OS='"OpenBSD"' gc.c
gcc -c -O2 -m32 -pipe -falign-functions -fomit-frame-pointer
-fno-strict-aliasing -W -Wimplicit -Wre
turn-type -Wunused -Wformat -Wuninitialized -Wstrict-prototypes
-D_GNU_SOURCE  -D_FILE_OFFSET_BITS=6
4 -D_OS='"OpenBSD"' apply.c
gcc -c -O2 -m32 -pipe -falign-functions -fomit-frame-pointer
-fno-strict-aliasing -W -Wimplicit -Wre
turn-type -Wunused -Wformat -Wuninitialized -Wstrict-prototypes
-D_GNU_SOURCE  -D_FILE_OFFSET_BITS=6
4 -D_OS='"OpenBSD"' flow.c
gcc -c -O2 -m32 -pipe -falign-functions -fomit-frame-pointer
-fno-strict-aliasing -W -Wimplicit -Wre
turn-type -Wunused -Wformat -Wuninitialized -Wstrict-prototypes
-D_GNU_SOURCE  -D_FILE_OFFSET_BITS=6
4 -D_OS='"OpenBSD"' sym.c
gcc -c -O2 -m32 -pipe -falign-functions -fomit-frame-pointer
-fno-strict-aliasing -W -Wimplicit -Wre
turn-type -Wunused -Wformat -Wuninitialized -Wstrict-prototypes
-D_GNU_SOURCE  -D_FILE_OFFSET_BITS=6
4 -D_OS='"OpenBSD"' subr.c
gcc -c -O2 -m32 -pipe -falign-functions -fomit-frame-pointer
-fno-strict-aliasing -W -Wimplicit -Wre
turn-type -Wunused -Wformat -Wuninitialized -Wstrict-prototypes
-D_GNU_SOURCE  -D_FILE_OFFSET_BITS=6
4 -D_OS='"OpenBSD"' big.c
gcc -c -O2 -m32 -pipe -falign-functions -fomit-frame-pointer
-fno-strict-aliasing -W -Wimplicit -Wre
turn-type -Wunused -Wformat -Wuninitialized -Wstrict-prototypes
-D_GNU_SOURCE  -D_FILE_OFFSET_BITS=6
4 -D_OS='"OpenBSD"' io.c
gcc -c -O2 -m32 -pipe -falign-functions -fomit-frame-pointer
-fno-strict-aliasing -W -Wimplicit -Wre
turn-type -Wunused -Wformat -Wuninitialized -Wstrict-prototypes
-D_GNU_SOURCE  -D_FILE_OFFSET_BITS=6
4 -D_OS='"OpenBSD"' net.c
gcc -c -O2 -m32 -pipe -falign-functions -fomit-frame-pointer
-fno-strict-aliasing -W -Wimplicit -Wre
turn-type -Wunused -Wformat -Wuninitialized -Wstrict-prototypes
-D_GNU_SOURCE  -D_FILE_OFFSET_BITS=6
4 -D_OS='"OpenBSD"' tab.c
mkdir -p ../bin ../lib
gcc -o ../bin/picolisp -m32 -rdynamic main.o gc.o apply.o flow.o sym.o
subr.o big.o io.o net.o tab.o
 -lc -lm
strip ../bin/picolisp
gcc -c -O2 -m32 -pipe -falign-functions -fomit-frame-pointer
-fno-strict-aliasing -W -Wimplicit -Wre
turn-type -Wunused -Wformat -Wuninitialized -Wstrict-prototypes
-D_GNU_SOURCE  -D_FILE_OFFSET_BITS=6
4 -D_OS='"OpenBSD"' ext.c
gcc -o ../lib/ext -m32 -shared -export-dynamic ext.o
strip ../lib/ext
gcc -c -O2 -m32 -pipe -falign-functions -fomit-frame-pointer
-fno-strict-aliasing -W -Wimplicit -Wre
turn-type -Wunused -Wformat -Wuninitialized -Wstrict-prototypes
-D_GNU_SOURCE  -D_FILE_OFFSET_BITS=6
4 -D_OS='"OpenBSD"' ht.c
gcc -o ../lib/ht -m32 -shared -export-dynamic ht.o
strip ../lib/ht


best,

/e

Reply via email to