3364ff6ad6ab908331ed0018d099af42c9c8e24b
[openwrt/svn-archive/archive.git] / lang / lua / patches / lua-5.0.2-soname.patch
1 diff -ruN lua-5.0.2-orig/Makefile lua-5.0.2-1/Makefile
2 --- lua-5.0.2-orig/Makefile 2004-03-12 02:50:55.000000000 +0100
3 +++ lua-5.0.2-1/Makefile 2005-05-25 11:41:44.000000000 +0200
4 @@ -38,8 +38,8 @@
5
6 # shared libraries (for Linux)
7 so:
8 - ld -o lib/liblua.so.$V -shared src/*.o
9 - ld -o lib/liblualib.so.$V -shared src/lib/*.o
10 + $(LD) -o lib/liblua.so.$V -shared -soname="liblua.so.$V" src/*.o
11 + $(LD) -o lib/liblualib.so.$V -shared -soname="liblualib.so.$V" src/lib/*.o
12 cd lib; ln -fs liblua.so.$V liblua.so; ln -fs liblualib.so.$V liblualib.so
13
14 # binaries using shared libraries