-
Notifications
You must be signed in to change notification settings - Fork 122
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
Doesnt link hl.so on debian jessie #320
Comments
xash3d-fwgs as well
|
Oh, how it's even missing -fPIC |
😕 |
What's the target you're compiling for? |
Ah, I missed that. Debian Jessie, ok. |
I can't update debian because its on a TV box, and its internal c library can't chroot into stretch+ |
just specify it in CFLAGS globally. Other way is force large code model (-mcmodel=large in CFLAGS) to make text relocations work (this will make library loading slower, binaries bigger, but may even improve performance in some cases) |
The variable? Like CFLAGS+=-fPIC? |
Waf: Entering directory `/root/.tmp/hl/build' [ 64/169] Linking build/cl_dll/client_mipsel.so [167/169] Linking build/dlls/hl_mipsel.so ../cl_dll/cl_util.h:169:15: warning: type of 'vec3_origin' does not match original declaration extern vec3_t vec3_origin; ^ ../cl_dll/cl_util.h:169:15: warning: type of 'vec3_origin' does not match original declaration ../pm_shared/pm_math.c:34:8: note: previously declared here vec3_t vec3_origin = { 0, 0, 0 }; ^ /usr/bin/ld: /tmp/ccyw0UHB.ltrans0.ltrans.o: relocation R_MIPS_HI16 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /tmp/ccyw0UHB.ltrans0.ltrans.o: error adding symbols: Bad value collect2: error: ld returned 1 exit status
How can I add -fPIC?
The text was updated successfully, but these errors were encountered: