diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2017-08-15 01:22:06 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2017-08-15 01:22:06 +0000 |
commit | eaeb99aca2473412240063e0fb2bc2d95ec21228 (patch) | |
tree | 438dc96e5ab3f63e3efd5d414516078534017d8a /regress | |
parent | ea56110961ed2628d470c92be862606c60d75e38 (diff) |
add static test too
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/pkg-config/Makefile | 13 | ||||
-rw-r--r-- | regress/usr.bin/pkg-config/pcdir/filter.pc | 3 |
2 files changed, 12 insertions, 4 deletions
diff --git a/regress/usr.bin/pkg-config/Makefile b/regress/usr.bin/pkg-config/Makefile index dc18d2ef5f1..7716b85f11c 100644 --- a/regress/usr.bin/pkg-config/Makefile +++ b/regress/usr.bin/pkg-config/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.55 2017/08/15 00:23:44 jasper Exp $ +# $OpenBSD: Makefile,v 1.56 2017/08/15 01:22:05 jasper Exp $ REGRESS_TARGETS=cmp-vers1-1 \ cmp-vers1-2 \ @@ -87,7 +87,8 @@ REGRESS_TARGETS=cmp-vers1-1 \ variables-4 \ variables-5 \ filter-system-dirs-1 \ - filter-system-dirs-2 + filter-system-dirs-2 \ + filter-system-dirs-3 PKG_CONFIG?= /usr/bin/pkg-config PCONFIG = PKG_CONFIG_PATH=${.CURDIR}/pcdir/ ${PKG_CONFIG} @@ -598,10 +599,16 @@ filter-system-dirs-1: filter-system-dirs-2: # Test removing -L/usr/lib as a system directory - @echo '-lfilter' > ${WANT} + @echo ' -lfilter' > ${WANT} @${VPCONFIG} --libs filter @diff -u ${WANT} ${GOT} +filter-system-dirs-3: + # Test removing -L/usr/lib as a system directory (static) + @echo ' -lfilter -lprivate-filter' > ${WANT} + @${VPCONFIG} --static --libs filter + @diff -u ${WANT} ${GOT} + clean: rm -f *.want *.got diff --git a/regress/usr.bin/pkg-config/pcdir/filter.pc b/regress/usr.bin/pkg-config/pcdir/filter.pc index 7d4012c5fa1..bbedf818c02 100644 --- a/regress/usr.bin/pkg-config/pcdir/filter.pc +++ b/regress/usr.bin/pkg-config/pcdir/filter.pc @@ -2,4 +2,5 @@ Name: Filter system dirs Description: pkg-config(1) regress file Version: 0.0 Cflags: -I/usr/include -DFILTER -Libs: -L/usr/lib -lfilter +Libs: -L/usr/lib/ -lfilter +Libs.private: -L/usr/lib/ -lprivate-filter |