From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7177 invoked by alias); 10 Sep 2014 04:09:34 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 7152 invoked by uid 48); 10 Sep 2014 04:09:33 -0000 From: "xdje42 at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug guile/17367] computation of guild path wrong when pkg-config script supplied as arg to --with-guile Date: Wed, 10 Sep 2014 04:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: guile X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: xdje42 at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q3/txt/msg00424.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17367 --- Comment #1 from Doug Evans --- For reference sake, here's the pkg-config script. #! /bin/sh BDWGC=/path/to/boehm-git/release-7_4/rel GUILE=/path/to/guile/git/rel case "$1" in --exists) exit 0 ;; --cflags) echo "-pthread -I$BDWGC/include -I$GUILE/include/guile/2.2" ; exit 0 ;; --libs) echo "-Wl,-rpath,$BDWGC/lib -L$BDWGC/lib -Wl,-rpath,$GUILE/lib -L$GUILE/lib -lguile-2.2 -lgc" ; exit 0 ;; --variable) case "$2" in guild) echo "$GUILE/bin/guild" ; exit 0 ;; exec_prefix) echo "$GUILE" ; exit 0 ;; *) echo "bad arg" >&2 ; exit 1 ;; esac ;; *) echo "bad arg" >&2 ; exit 1 ;; esac It's mildly hacky in that it doesn't check the supplied guile version (which is the last parameter passed), but it works. -- You are receiving this mail because: You are on the CC list for the bug.