Search
j0ke.net Open Build Service
>
Projects
>
multimedia
>
lua50
> lua50-5.0.2-dynamic-loading.diff
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File lua50-5.0.2-dynamic-loading.diff of Package lua50
--- Makefile +++ Makefile @@ -38,9 +38,10 @@ # shared libraries (for Linux) so: - ld -o lib/liblua.so.$V -shared src/*.o - ld -o lib/liblualib.so.$V -shared src/lib/*.o - cd lib; ln -fs liblua.so.$V liblua.so; ln -fs liblualib.so.$V liblualib.so + $(CC) -o lib/liblua.so.$V -shared -Wl,-soname,liblua.so.$V src/*.o -lm + ln -fs lib/liblua.so.$V lib/liblua.so + $(CC) -o lib/liblualib.so.$V -shared -Wl,-soname,liblualib.so.$V src/lib/*.o -lm -ldl -Llib -llua + ln -fs lib/liblualib.so.$V lib/liblualib.so # binaries using shared libraries sobin: --- config +++ config @@ -25,8 +25,8 @@ # interface (e.g., Linux, Solaris, IRIX, BSD, AIX, HPUX, and probably others), # uncomment the next two lines. # -#LOADLIB= -DUSE_DLOPEN=1 -#DLLIB= -ldl +LOADLIB= -DUSE_DLOPEN=1 +DLLIB= -ldl # # In Linux with gcc, you should also uncomment the next definition for # MYLDFLAGS, which passes -E (= -export-dynamic) to the linker. This option