diff options
author | Guy Martin <gmsoft@gentoo.org> | 2003-12-20 00:13:09 +0000 |
---|---|---|
committer | Guy Martin <gmsoft@gentoo.org> | 2003-12-20 00:13:09 +0000 |
commit | e9692f622f6ec8bacc38fa22d919a4ac6db3cdd2 (patch) | |
tree | 7b6f2d575901690233195301f710ec54664892d5 /dev-lang/lua/files | |
parent | Added a pic patch to use -fPIC flag correctly. This fix hppa compilation. (diff) | |
download | historical-e9692f622f6ec8bacc38fa22d919a4ac6db3cdd2.tar.gz historical-e9692f622f6ec8bacc38fa22d919a4ac6db3cdd2.tar.bz2 historical-e9692f622f6ec8bacc38fa22d919a4ac6db3cdd2.zip |
Added a pic patch to use -fPIC flag correctly. This fix hppa compilation.
Diffstat (limited to 'dev-lang/lua/files')
-rw-r--r-- | dev-lang/lua/files/lua-5.0.1-pic.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-lang/lua/files/lua-5.0.1-pic.patch b/dev-lang/lua/files/lua-5.0.1-pic.patch new file mode 100644 index 000000000000..1d7aa5cce0b0 --- /dev/null +++ b/dev-lang/lua/files/lua-5.0.1-pic.patch @@ -0,0 +1,38 @@ +diff -uNr lua-5.0.1.orig/Makefile lua-5.0.1/Makefile +--- lua-5.0.1.orig/Makefile 2003-12-19 23:41:25.394200808 +0000 ++++ lua-5.0.1/Makefile 2003-12-19 23:42:39.829884864 +0000 +@@ -38,8 +38,8 @@ + + # shared libraries (for Linux) + so: +- ld -o lib/liblua.so.$V -shared src/*.o +- ld -o lib/liblualib.so.$V -shared src/lib/*.o ++ gcc -o lib/liblua.so.$V -shared src/*.o ++ gcc -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 + + # binaries using shared libraries +diff -uNr lua-5.0.1.orig/src/Makefile lua-5.0.1/src/Makefile +--- lua-5.0.1.orig/src/Makefile 2003-12-19 23:41:25.374203848 +0000 ++++ lua-5.0.1/src/Makefile 2003-12-19 23:42:07.303829576 +0000 +@@ -4,6 +4,8 @@ + + include $(LUA)/config + ++CFLAGS= $(MYCFLAGS) $(PICFLAGS) $(WARN) $(INCS) $(DEFS) ++ + OBJS= \ + lapi.o \ + lcode.o \ +diff -uNr lua-5.0.1.orig/src/lib/Makefile lua-5.0.1/src/lib/Makefile +--- lua-5.0.1.orig/src/lib/Makefile 2003-12-19 23:41:25.368204760 +0000 ++++ lua-5.0.1/src/lib/Makefile 2003-12-19 23:42:22.414532400 +0000 +@@ -4,6 +4,8 @@ + + include $(LUA)/config + ++CFLAGS= $(MYCFLAGS) $(PICFLAGS) $(WARN) $(INCS) $(DEFS) ++ + EXTRA_DEFS= $(POPEN) $(TMPNAM) $(DEGREES) $(LOADLIB) + + OBJS= lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o ltablib.o lstrlib.o loadlib.o |