mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-02-05 22:50:27 +01:00
Makes the resolved package list be correctly serialized with each package only appearing once. This provides more consistency between the various flag outputs by ensuring that the flags from each package are only grabbed once. This makes a difference since the duplicate flag stripping happens from the end of the output (-l) or the beginning of the output (-L/-I/other).
14 lines
353 B
Bash
Executable file
14 lines
353 B
Bash
Executable file
#! /bin/sh
|
|
|
|
set -e
|
|
|
|
. ${srcdir}/common
|
|
|
|
RESULT="-DPATH2 -DFOO -DPATH1 -I/path/include"
|
|
run_test --cflags flag-dup-1 flag-dup-2
|
|
run_test --cflags flag-dup-2 flag-dup-1
|
|
|
|
RESULT="-Wl,--whole-archive --Wl,--no-whole-archive -Xlinker -R /path/lib \
|
|
-L/path/lib -lpath2 -lpath1 -lm"
|
|
run_test --libs flag-dup-1 flag-dup-2
|
|
run_test --libs flag-dup-2 flag-dup-1
|