summaryrefslogtreecommitdiff
path: root/scripts/makefile.beos
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2006-04-14 06:22:52 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2009-04-06 16:08:51 -0500
commita7d0c941697148896102cc801157b4485f6f2e61 (patch)
tree5f8863c43f8d352923fd7a9753371d3c8d6ea3de /scripts/makefile.beos
parent3a51203c48301dcd1b61f72d520a29a5071b9dad (diff)
downloadlibpng-a7d0c941697148896102cc801157b4485f6f2e61.tar.gz
Imported from libpng-1.2.9.tarv1.2.9
Diffstat (limited to 'scripts/makefile.beos')
-rw-r--r--scripts/makefile.beos14
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/makefile.beos b/scripts/makefile.beos
index 08796e161..eb3ffe2b4 100644
--- a/scripts/makefile.beos
+++ b/scripts/makefile.beos
@@ -8,7 +8,7 @@
# Library name:
LIBNAME=libpng12
PNGMAJ = 0
-PNGMIN = 1.2.9rc1
+PNGMIN = 1.2.9
PNGVER = $(PNGMAJ).$(PNGMIN)
# Shared library names:
@@ -43,8 +43,8 @@ WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
# still here in R4.5
CFLAGS=-I$(ZLIBINC) -Wall -O1 -funroll-loops \
$(ALIGN) # $(WARNMORE) -g -DPNG_DEBUG=5
-# LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng -lz -lm
-LDFLAGS=-L. -Wl,-soname=$(LIBSOMAJ) -L$(ZLIBLIB) -lz -lm
+# LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng -lz
+LDFLAGS=-L. -Wl,-soname=$(LIBSOMAJ) -L$(ZLIBLIB) -lz
# where make install puts libpng.a, libpng12.so*, and png.h
prefix=/usr/local
@@ -90,7 +90,7 @@ libpng-config:
( cat scripts/libpng-config-head.in; \
echo prefix=\"$(prefix)\"; \
echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \
- echo libs=\"-lpng12 -lz -lm\"; \
+ echo libs=\"-lpng12 -lz \"; \
cat scripts/libpng-config-body.in ) > libpng-config
chmod +x libpng-config
@@ -103,14 +103,14 @@ $(LIBSOMAJ): $(LIBSOVER)
$(LIBSOVER): $(OBJSDLL)
$(CC) -nostart -Wl,-soname,$(LIBSOMAJ) -o \
- $(LIBSOVER) $(OBJSDLL)
+ $(LIBSOVER) $(OBJSDLL) $(LDFLAGS)
$(OLDSOVER): $(OBJSDLL)
$(CC) -nostart -Wl,-soname,$(OLDSOMAJ) -o \
- $(OLDSOVER) $(OBJSDLL)
+ $(OLDSOVER) $(OBJSDLL) $(LDFLAGS)
pngtest: pngtest.o $(LIBSO)
- $(CC) -L$(ZLIBLIB) -lz -lpng12 -o pngtest pngtest.o
+ $(CC) -L$(ZLIBLIB) -L. -lz -lpng12 -o pngtest pngtest.o
test: pngtest
./pngtest