Ticket #213 (closed bug: fixed)
wrong link order, fix win32 make installable
Reported by: | rurban | Owned by: | rurban |
---|---|---|---|
Priority: | blocker | Milestone: | 0.9.1 |
Component: | core | Version: | trunk |
Severity: | fatal | Keywords: | |
Cc: | Language: | ||
Patch status: | applied | Platform: | win32 |
Description
Wrong link order, the object file must come before the libs. This is only critical on win32 linkers.
This patch was part of rt#39742
$ gcc -o installable_parrot.exe \
src/main.o \ -L/usr/src/perl/parrot/parrot-0.9.0-1/build -lparrot -Wl,--enable-auto-image-base -lpthread -lm -L/usr/lib -licuuc -licudata -lpthread -lm -lcrypt -lgmp -lreadline -lpcre -lcrypto -lintl -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,--stack,8388608 -Wl,--enable-auto-image-base -L/usr/local/lib src/install_config.o
src/install_config.o:install_config.c:(.text+0x17): undefined reference to `_Parrot_set_config_hash_internal' collect2: ld returned 1 exit status $ gcc -o installable_parrot.exe src/main.o src/install_config.o -L/usr/src/perl/parrot/parrot-0.9.0-1/build -lparrot -Wl,--enable-auto-image-base -lpthread -lm -L/usr/lib -licuuc -licudata -lpthread -lm -lcrypt -lgmp -lreadline -lpcre -lcrypto -lintl -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,--stack,8388608 -Wl,--enable-auto-image-base -L/usr/local/lib