Special case handling for -framework on MacOSX fails in some cases #56
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Testing pkgconf-0.9.3.
Qt builds fine, but woe unto you if two different packages use the same framework, and you ask for both of their --libs.
Happiily, adding the single line to tests/run.sh demonstrates the problem:
run_test "PKG_CONFIG_PATH='
{selfdir}/lib1'
{1} --libs framework-1 framework-2""-F/usr/lib -framework framework-1 -framework framework-2"
This fails with
!!! Test 73 failed.
!!! $ PKG_CONFIG_PATH='/Users/dank/src/yobuild-builder/unified/btmp/pkgconf-0.9.3/tests/lib1' ./pkgconf --libs framework-1 framework-2
!!! -F/usr/lib -framework -framework framework-2 -framework framework-1
!!! expected '-F/usr/lib -framework framework-1 -framework framework-2' in output
Here's a commit that adds the test case and a hacky patch to fix the problem.
After this, all the strncmp(foo, "-framework", 10)'s need to be reviewed, as this patch may break or obsolete them.
549c12c87c
Hmm, this is kind of hacky. Want to clean it up a little and submit a pull request? The basic idea looks OK.