Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1epKoQ-000295-35 for pgsql-general@arkaria.postgresql.org; Fri, 23 Feb 2018 21:23:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1epKoO-00086v-QQ for pgsql-general@arkaria.postgresql.org; Fri, 23 Feb 2018 21:23:24 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1epKoO-00086m-3T for pgsql-general@lists.postgresql.org; Fri, 23 Feb 2018 21:23:24 +0000 Received: from catfish.maple.relay.mailchannels.net ([23.83.214.32]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1epKoG-0002i1-Bg for pgsql-general@lists.postgresql.org; Fri, 23 Feb 2018 21:23:22 +0000 X-Sender-Id: 5xi41l16bi|x-authuser|_demitri_@demitri.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id E89CB3E21CE for ; Fri, 23 Feb 2018 21:23:13 +0000 (UTC) Received: from ghost.mxroute.com (unknown [100.96.14.37]) (Authenticated sender: 5xi41l16bi) by relay.mailchannels.net (Postfix) with ESMTPA id 824B63E0AD3 for ; Fri, 23 Feb 2018 21:23:13 +0000 (UTC) X-Sender-Id: 5xi41l16bi|x-authuser|_demitri_@demitri.com Received: from ghost.mxroute.com (ghost-outgoing.mxroute.com [172.18.55.234]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.13.1); Fri, 23 Feb 2018 21:23:13 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: 5xi41l16bi|x-authuser|_demitri_@demitri.com X-MailChannels-Auth-Id: 5xi41l16bi X-Whimsical-Sponge: 10237cf226e0e05c_1519420993777_3548122009 X-MC-Loop-Signature: 1519420993776:667910188 X-MC-Ingress-Time: 1519420993776 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=demitri.com ; s=default; h=Message-Id:In-Reply-To:To:References:Date:Subject:Mime-Version :Content-Type:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=x/4fzu2M9HgTKzcsjmmAmWOEfh95xHhlJyiFKVJxJxA=; b=ZIe6oKTjfLTA2LibxJCNq7WmzE PI/FyDVpSuF+LB0JkMuttD63Z6W9Mvcxd0hcuS4cbKEzRc3ycsqrYEe8O91xHgBHWIJNUu0XjOSlH w5+Mq6wmpZXs/Ue1QarhJre/6VsYY1TUj/vsdPEFHWMrBBimDOLBrUkvxSlkg1chwdimTjq7zTpWF vBqa32fGzqu/14RZ17mZEAazl6BjKZGdwGqDsYYA1A85gMwAR2wLI/l06WycvLaR+aK5+NYwwBwyX aiI+u+BekDzXo50ZgbSPnPj1pfmDmdpTgq1kuK9qDXdrAoQliNhGAfaNJwIzDHJRjrXcQEVlg7JfL IWGqKTfg==; From: Demitri Muna Content-Type: multipart/alternative; boundary="Apple-Mail=_CE6D0DB1-58DE-4C23-BD4F-8E5B435005FB" Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: Location to specify C compiler option in C extension Date: Fri, 23 Feb 2018 16:23:10 -0500 References: <5186A762-290F-42CC-851E-E9D873CE51B0@demitri.com> <15098.1519412984@sss.pgh.pa.us> To: pgsql-general@lists.postgresql.org In-Reply-To: <15098.1519412984@sss.pgh.pa.us> Message-Id: <01DB0EC9-B077-48BC-8059-B3B7EE9FD63D@demitri.com> X-Mailer: Apple Mail (2.3445.5.20) X-AuthUser: _demitri_@demitri.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_CE6D0DB1-58DE-4C23-BD4F-8E5B435005FB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Tom, > PG_CPPFLAGS ought to work. One point is that you need to set that = before > including pgxs.mk; maybe it's an ordering problem? On closer inspection, it was working, but the pg Makefile was = specifically including =E2=80=9C-Wdeclaration-after-statement=E2=80=9D = which I think was overriding the =E2=80=98-std=3Dc99=E2=80=99 part. The = line below fixed the problem. PG_CPPFLAGS +=3D -std=3Dc99 -Wno-declaration-after-statement Thanks, sorry for the noise. Demitri --Apple-Mail=_CE6D0DB1-58DE-4C23-BD4F-8E5B435005FB Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi = Tom,

PG_CPPFLAGS ought to work.  One = point is that you need to set that before
including pgxs.mk; maybe it's an = ordering problem?

On closer inspection, it was working, = but the pg Makefile was specifically including = =E2=80=9C-Wdeclaration-after-statement=E2=80=9D which I think was = overriding the =E2=80=98-std=3Dc99=E2=80=99 part. The line below fixed = the problem.

PG_CPPFLAGS +=3D -std=3Dc99 = -Wno-declaration-after-statement

Thanks, sorry for the noise.

Demitri

= --Apple-Mail=_CE6D0DB1-58DE-4C23-BD4F-8E5B435005FB--