Opened 16 years ago
Closed 16 years ago
#3511 closed bug (fixed)
gcc-4.3.3-haiku-090129 forbids undefined symbols in shared libraries
Reported by: | titer | Owned by: | mmlr |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Build System | Version: | R1/pre-alpha1 |
Keywords: | Cc: | planche2k@… | |
Blocked By: | Blocking: | ||
Platform: | All |
Description
gcc4 currently adds -no-undefined unconditionally when linking, which I know is expected behavior (mmlr mentioned it in his blog post announcing the native gcc4).
This is going to cause build issues with a number of projects though, which assume the usual behavior of allowing undefined symbols in shared libraries (e.g. try building libevent), and unfortunately I don't believe we can convince everybody else to stop using this "feature".
Updating the specs to only enable -no-undefined when linking apps fixes it (same way gcc2 does it).
Attachments (1)
Change History (6)
by , 16 years ago
Attachment: | specs.patch added |
---|
follow-up: 2 comment:1 by , 16 years ago
comment:2 by , 16 years ago
Run "gcc -dumpspecs > /boot/develop/tools/gcc-4.3.3-haiku-090129/lib/gcc/i586-pc-haiku/4.3.3/specs", and then modify that file.
comment:3 by , 16 years ago
Cc: | added |
---|
comment:4 by , 16 years ago
Owner: | changed from | to
---|
comment:5 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in hrev29490, will be available when the updated GCC4 package is built & uploaded.
Thanks a lot, I ran into the same problem. Where is the specs file located? Your patch was made in the same folder, so I can't tell without searching for specs myself. :-) Can this patch be included in the original 4.3.3 native Haiku GCC package, or does it require rebuilding GCC? Thanks for your work!