From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jeffrey Walton Newsgroups: gmane.lisp.guile.devel Subject: Re: Does Guile honor its configuration options and make flags? Date: Tue, 24 Oct 2017 11:50:44 -0400 Message-ID: References: Reply-To: noloader@gmail.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1508860259 3932 195.159.176.226 (24 Oct 2017 15:50:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 24 Oct 2017 15:50:59 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Oct 24 17:50:53 2017 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e71TY-0007ZI-8b for guile-devel@m.gmane.org; Tue, 24 Oct 2017 17:50:44 +0200 Original-Received: from localhost ([::1]:44374 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e71Tf-0001Ks-Lg for guile-devel@m.gmane.org; Tue, 24 Oct 2017 11:50:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e71Tb-0001Kk-Eo for guile-devel@gnu.org; Tue, 24 Oct 2017 11:50:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e71Ta-0001hy-Mt for guile-devel@gnu.org; Tue, 24 Oct 2017 11:50:47 -0400 Original-Received: from mail-oi0-x235.google.com ([2607:f8b0:4003:c06::235]:47927) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e71Ta-0001hK-HK for guile-devel@gnu.org; Tue, 24 Oct 2017 11:50:46 -0400 Original-Received: by mail-oi0-x235.google.com with SMTP id h200so37666229oib.4 for ; Tue, 24 Oct 2017 08:50:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to; bh=SsNGbyD6FzVMwI/yaRaSt7yMv76m95ALzdgusjhF7NE=; b=vUBXGcdBgCsNpmQMaRB2+2Co3A408Pb04xysRWtk8+hR9oZAZIyCV3VjEpX212vkIr Qkg7mStWpy8hnKsA/RiX4QUGRuY5NDveNWlzsDLXyh32Q9w7w201nJNU3xsQf8gTLHNB HmLK7/Iu0AMVfi0szoeeHUdENiaGv0iI8Yaj8Lbw2rxCZ7j36hDzMStTC2vYMqXrgjeA /gL92xFdGD+qLCH2NUKyeh8O6oHNML3uMH1BWdExNuhnk8fX3USY+fUn962mlnlC5Fin cIuE+4WonVd0nr9SWNgAn/97bFbSDzu++Kcihd4vQdXZCdQNAzbzqS6df2POx62sNlzL uSTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to; bh=SsNGbyD6FzVMwI/yaRaSt7yMv76m95ALzdgusjhF7NE=; b=omwbvAAM+GZhH8dkWoacfSC9zFRVdqLGesPG+1gmZFGpXGOpYaF6QqEQRgLG44j9ud CYx3G1FKs0076aG5AMqCuaiUDTiWvCMRCrB92sHltS03virdABS3biSpktAyPhmJbdhl C4Hbou329sDcvrDGOqA7AYbR5mpMprgH7N1V0we9SPtRolsZthr5Gpq9IrSfFHgFAPlB 4+DjnYi5Hlj87+kLledVmFBIOQdA/rr1w4qsMBLjGd1BY8wBTX/rUQczGwlXCX+td0K5 00aVh7ouPEIGjg47V3wCpRGnK8tiOth509TICKjb0s4Zi+kXf4yg3W+eHUow8QBPoGIm S3UA== X-Gm-Message-State: AMCzsaXQfao7j2q4Z/YGYp2qprH0xlNT12fZ/gtJSUFg45ul8lMCbKzI HVCjHzMPKSXu1bq6mBQwdnoEES9xKloFB35gFVF2d06h X-Google-Smtp-Source: ABhQp+R24MTQ+45XJW2a8SFHCHu99hrKOatSwviJDGK1DytIDXR0QHeBKPAvkbfca25yLjxzIXjil/G4HyvcE7lkxBk= X-Received: by 10.202.61.65 with SMTP id k62mr9060329oia.418.1508860245340; Tue, 24 Oct 2017 08:50:45 -0700 (PDT) Original-Received: by 10.74.19.87 with HTTP; Tue, 24 Oct 2017 08:50:44 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::235 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:19342 Archived-At: On Tue, Oct 24, 2017 at 10:31 AM, Jeffrey Walton wrote: > I'm having trouble with some linking. Guile was configured with > --with-pic, and its dependent libraries were built with -fPIC. I'm > building on x86_64, so CFLAGS and CXXFLAGS include "-m64 > -march=native". > ... > Here's part of the script I am using to drive things on my side. All > of the OPT_ array are valid. 30 or so other Autotool projects > configure fine with them. It feels like Guile is just ignoring what I > am telling it to do. > > PKG_CONFIG_PATH="${OPT_PKGCONFIG[*]}" \ > CPPFLAGS="${OPT_CPPFLAGS[*]}" \ > CFLAGS="${OPT_CFLAGS[*]}" CXXFLAGS="${OPT_CXXFLAGS[*]}" \ > LDFLAGS="${OPT_LDFLAGS[*]}" LIBS="${OPT_LIBS[*]}" \ > ./configure --prefix="$INSTALL_PREFIX" --libdir="$INSTALL_LIBDIR" \ > --enable-shared --enable-static --with-pic \ > --disable-deprecated \ > --with-libgmp-prefix="$INSTALL_PREFIX" \ > --with-libunistring-prefix="$INSTALL_PREFIX" \ > --with-libiconv-prefix="$INSTALL_PREFIX" \ > --with-libltdl-prefix="$INSTALL_PREFIX" \ > --with-readline-prefix="$INSTALL_PREFIX" \ > --with-libintl-prefix="$INSTALL_PREFIX" > > if [[ "$?" -ne "0" ]]; then > echo "Failed to configure Guile" > [[ "$0" = "${BASH_SOURCE[0]}" ]] && exit 1 || return 1 > fi > > MAKE_FLAGS=("-j" "$MAKE_JOBS" "V=1") > if ! "$MAKE" "${MAKE_FLAGS[@]}" > then > echo "Failed to build Guile" > [[ "$0" = "${BASH_SOURCE[0]}" ]] && exit 1 || return 1 > fi Here are the values being used for the arrays: PKGCONFIG: /usr/local/lib64/pkgconfig CPPFLAGS: -I/usr/local/include -DNDEBUG CFLAGS: -m64 -march=native CXXFLAGS: -m64 -march=native LDFLAGS: -m64 -Wl,-rpath,/usr/local/lib64 -L/usr/local/lib64 -Wl,--enable-new-dtags