-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to append linker options? #111
Comments
You could try adding an
But it doesn't let you specify the order it is added. |
It's also possible to use
Creates a
|
setldopt (or addldopt) seems to be ignored somehow ... will investigate and report back (so you can do something else meanwhile).
custom.bmk
Regarding the |
Saw this in bmk_util.bmx (linkapp - for win32):
Wouldn't it then be better to search for "-lstdc++" (to avoid skipping appending -lstdc++ when using "static-libstdc++" ? (did not check if the static-libstdc++ already inclused -lstdc++ ... or if there are other params containing "stdc++") |
Regarding "ld_opts": they are ignored on linux ... bmk_util.bmx - linkapp():
I truncated the code a bit to make it easier to spot where "opts" is not used. Also it shows that on Windows, you append the options twice. Dunno if the first could be removed? Or if this can raise issues when used twice (so you'd better kinda "split" what can be added before and what needs to come afterwards) |
I was asked to get my game running on an ancient Linux (32bit, GLIBC <= 2.17).
I compiled NG's bcc and bmk with the help of vanilla bcc (and some adjustments). Some modules (GC stuff and some other in brl.mod) failed to compile with the ancient GCC (4.8 or 4.9 - tried on Cent OS 7 and Debian 8 MX 15).
So I compiled my own GCC (7.5) with the configure settings taken from my Mint setup.
The resulting binary (yeah!) failed to find CXXABI_1.3.9 - and
strings
found only up to CXXABI_1.3.8 in the system files (libstdc++.so.6).I found out that one can append
-static-libstdc++
to the g++ command doing the linking part after compilation. (yet I was not able to test the final binary - as it now blames the lack of hardware acceleration in my VM ... )How can I define this to happen here - did not spot the right place in "custom.bmk" or "make.bmk" (bmk_utils.bmx does not seem to append custom/configurable stuff)
The text was updated successfully, but these errors were encountered: