From patchwork Wed Jul 2 19:14:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tobias Burnus X-Patchwork-Id: 366461 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 325AE1400B0 for ; Thu, 3 Jul 2014 05:14:27 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; q=dns; s= default; b=c6gUA6ZeCV3kwZXRnIcFC3/QcjRygy6OqK0lOIWz1k6YWKgayntmG APQiFsFb9NZJWT+1qNgeaCiyAdZYj8vmFKDkr7IRvVvcni2sotVp7aqDDniebqz3 B6EchYFp/6WoNpjVrnDdQnsIzaplFkBaKce+YVIMvlWP2++2s8hbQM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; s=default; bh=XXlPaVb4jjprkWAQbvXNM2FzbNk=; b=WxRExGgkoVrWqjuHtKfNSoNZkidG G/GG6ja2bR84SCrNimRz+EyAYD/wR9AGHmr5r5w7wF/2w8mX2RvwM+0y75Rz7UAL AV74KkARuFKaIkwfmFQGN7QiFMPEBRwSE45Atx/xlykcRaulqtA9U21TACejg4Yk cEYObU2WrHX4jcs= Received: (qmail 7678 invoked by alias); 2 Jul 2014 19:14:19 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 7652 invoked by uid 89); 2 Jul 2014 19:14:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: mx02.qsc.de Received: from mx02.qsc.de (HELO mx02.qsc.de) (213.148.130.14) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 02 Jul 2014 19:14:16 +0000 Received: from tux.net-b.de (port-92-194-168-45.dynamic.qsc.de [92.194.168.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPSA id DAC1B2760E; Wed, 2 Jul 2014 21:14:12 +0200 (CEST) Message-ID: <53B45A03.2030407@net-b.de> Date: Wed, 02 Jul 2014 21:14:11 +0200 From: Tobias Burnus User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Thomas Schwinge , Jakub Jelinek CC: gcc patches Subject: Re: [Patch, libgomp] libgomp.fortran/fortran.exp - add -fintrinsic-modules-path ${blddir} References: <50D1DF81.1090300@net-b.de> <87simjtzid.fsf@kepler.schwinge.homeip.net> In-Reply-To: <87simjtzid.fsf@kepler.schwinge.homeip.net> Thomas Schwinge wrote: > Reopening this oldie: > >> index 5fa42f4..68440d18 100644 >> --- a/libgomp/testsuite/libgomp.fortran/fortran.exp >> +++ b/libgomp/testsuite/libgomp.fortran/fortran.exp >> @@ -14,6 +14,7 @@ set quadmath_library_path "../libquadmath/.libs" >> dg-init >> >> if { $blddir != "" } { >> + lappend ALWAYS_CFLAGS "additional_flags=-fintrinsic-modules-path ${blddir}" How about the following (only lightly tested). I wonder why I didn't use it before – but it looks obvious. Tobias # Allow for spec subsitution. - lappend ALWAYS_CFLAGS "additional_flags=-B${blddir}/${quadmath_library_path}/" + lappend ALWAYS_FFLAGS "additional_flags=-B${blddir}/${quadmath_library_path}/" set ld_library_path "$always_ld_library_path:${blddir}/${lang_library_path}:${blddir}/${quadmath_library_path}" --- a/libgomp/testsuite/libgomp.fortran/fortran.exp +++ b/libgomp/testsuite/libgomp.fortran/fortran.exp @@ -48,5 +48,5 @@ if { $lang_test_file_found } { || [file exists "${blddir}/${quadmath_library_path}/libquadmath.${shlib_ext}"] } { - lappend ALWAYS_CFLAGS "ldflags=-L${blddir}/${quadmath_library_path}/" + lappend ALWAYS_FFLAGS "ldflags=-L${blddir}/${quadmath_library_path}/"