Back out dynamic linking of pngtest, cause problems with LD_LIBRARY_PATH

and other LD_ tuning.

PR:     72856
This commit is contained in:
Andrey A. Chernov 2004-10-20 19:12:44 +00:00
parent eeff877c8f
commit f617b864a6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=119867

View File

@ -1,5 +1,5 @@
--- scripts/makefile.freebsd Sat May 18 10:46:45 2002
+++ scripts/makefile.freebsd Mon Oct 20 00:05:40 2003
--- scripts/makefile.freebsd.orig Sat May 18 18:46:45 2002
+++ scripts/makefile.freebsd Wed Oct 20 23:06:52 2004
@@ -25,7 +25,7 @@
DPADD+= ${LIBM} ${LIBZ}
@ -9,13 +9,3 @@
CFLAGS+= -DPNG_NO_ASSEMBLER_CODE
.endif
@@ -34,7 +34,7 @@
pngwtran.c pngmem.c pngerror.c pngpread.c pnggccrd.c
-pngtest: pngtest.o libpng.a
+pngtest: pngtest.o ${SHLIB_NAME}
- ${CC} ${CFLAGS} -L. -static -o pngtest pngtest.o -lpng -lz -lm
+ ${CC} ${CFLAGS} -L. -Wl,-rpath=${.OBJDIR} -o pngtest pngtest.o -lpng -lz -lm
CLEANFILES= pngtest pngtest.o pngout.png