zlib icon indicating copy to clipboard operation
zlib copied to clipboard

Linker error examplesh ld: attempted static link of dynamic object libz.so.1.2.12 on AmigaOS 4.1 FE + gcc 4.2.4

Open 0ric1 opened this issue 3 years ago • 0 comments

I executed configure and gmake without parameters, the static library and dynamic library were build successfully but when building the examplesh it stopped with an error. The command that was executed was:

gcc -O3 -DHAVE_HIDDEN -o examplesh example.o -L. libz.so.1.2.12

I tried

gcc -O3 -DHAVE_HIDDEN -o examplesh example.o -Wl,Bdynamic -L. libz.so.1.2.12

that worked fine, also execution of examplesh worked now correctly. configure.log shows uname = AmigaOS

0ric1 avatar Apr 18 '22 19:04 0ric1