--- Makefile.orig 2006-05-03 19:03:48.000000000 -0600 +++ Makefile 2009-03-27 02:05:15.000000000 -0600 @@ -33,11 +33,11 @@ # change the next ones. # Name of .pc file. "lua5.1" on Debian/Ubuntu -LUAPKG=lua5.1 +LUAPKG=lua OUTFILE=gd.so CFLAGS=`gdlib-config --cflags` `pkg-config $(LUAPKG) --cflags` -O3 -Wall GDFEATURES=`gdlib-config --features |sed -e "s/GD_/-DGD_/g"` -LFLAGS=-shared `gdlib-config --ldflags` `gdlib-config --libs` \ +LFLAGS=-bundle `gdlib-config --ldflags` `gdlib-config --libs` \ `pkg-config $(LUAPKG) --libs` -lgd INSTALL_PATH=`pkg-config $(LUAPKG) --variable=INSTALL_CMOD` @@ -63,6 +63,7 @@ #INSTALL_PATH="C:/Program Files/lua/" # --------------------------------------------------------------------------- +DESTDIR= all: $(OUTFILE) @@ -71,7 +72,7 @@ lua test_features.lua install: $(OUTFILE) - install -s $(OUTFILE) $(INSTALL_PATH) + install $(OUTFILE) $(DESTDIR)$(INSTALL_PATH) clean: rm -f $(OUTFILE) *.o