pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: On macOS, use -isysroot in link steps as well as compile steps.
7+ messages / 1 participants
[nested] [flat]

* pgsql: On macOS, use -isysroot in link steps as well as compile steps.
@ 2020-11-20 05:07 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-11-20 05:07 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

On macOS, use -isysroot in link steps as well as compile steps.

We previously put the -isysroot switch only into CPPFLAGS, theorizing
that it was only needed to find the right copies of include files.
However, it seems that we also need to use it while linking programs,
to find the right stub ".tbd" files for libraries.  We got away
without that up to now, but apparently that was mostly luck.  It may
also be that failures are only observed when the Xcode version is
noticeably out of sync with the host macOS version; the case that's
prompting action right now is that builds fail when using latest Xcode
(12.2) on macOS Catalina, even though it's fine on Big Sur.

Hence, add -isysroot to LDFLAGS as well.  (It seems that the more
common practice is to put it in CFLAGS, whence it'd be included at
both compile and link steps.  However, we can't mess with CFLAGS in
the platform template file without confusing configure's logic for
choosing default CFLAGS.)

This should be back-patched, but first let's see if the buildfarm
likes it on HEAD.

Report and patch by James Hilliard (some cosmetic mods by me)

Discussion: https://postgr.es/m/20201120003314.20560-1-james.hilliard1@gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/49407dc32a2931550e4ff1dea314b6a25afdfc35

Modified Files
--------------
configure           | 2 ++
configure.ac        | 2 ++
src/template/darwin | 1 +
3 files changed, 5 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: On macOS, use -isysroot in link steps as well as compile steps.
@ 2020-11-20 05:58 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-11-20 05:58 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

On macOS, use -isysroot in link steps as well as compile steps.

We previously put the -isysroot switch only into CPPFLAGS, theorizing
that it was only needed to find the right copies of include files.
However, it seems that we also need to use it while linking programs,
to find the right stub ".tbd" files for libraries.  We got away
without that up to now, but apparently that was mostly luck.  It may
also be that failures are only observed when the Xcode version is
noticeably out of sync with the host macOS version; the case that's
prompting action right now is that builds fail when using latest Xcode
(12.2) on macOS Catalina, even though it's fine on Big Sur.

Hence, add -isysroot to LDFLAGS as well.  (It seems that the more
common practice is to put it in CFLAGS, whence it'd be included at
both compile and link steps.  However, we can't mess with CFLAGS in
the platform template file without confusing configure's logic for
choosing default CFLAGS.)

Back-patch of 49407dc32 into all supported branches.

Report and patch by James Hilliard (some cosmetic mods by me)

Discussion: https://postgr.es/m/20201120003314.20560-1-james.hilliard1@gmail.com

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/9e9a31bd009663bcdd5e676d6012ee691d8944b6

Modified Files
--------------
configure           | 2 ++
configure.in        | 2 ++
src/template/darwin | 1 +
3 files changed, 5 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: On macOS, use -isysroot in link steps as well as compile steps.
@ 2020-11-20 05:58 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-11-20 05:58 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

On macOS, use -isysroot in link steps as well as compile steps.

We previously put the -isysroot switch only into CPPFLAGS, theorizing
that it was only needed to find the right copies of include files.
However, it seems that we also need to use it while linking programs,
to find the right stub ".tbd" files for libraries.  We got away
without that up to now, but apparently that was mostly luck.  It may
also be that failures are only observed when the Xcode version is
noticeably out of sync with the host macOS version; the case that's
prompting action right now is that builds fail when using latest Xcode
(12.2) on macOS Catalina, even though it's fine on Big Sur.

Hence, add -isysroot to LDFLAGS as well.  (It seems that the more
common practice is to put it in CFLAGS, whence it'd be included at
both compile and link steps.  However, we can't mess with CFLAGS in
the platform template file without confusing configure's logic for
choosing default CFLAGS.)

Back-patch of 49407dc32 into all supported branches.

Report and patch by James Hilliard (some cosmetic mods by me)

Discussion: https://postgr.es/m/20201120003314.20560-1-james.hilliard1@gmail.com

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/5b83604270a6ffc06e8e9406d19b9f2e845b74f9

Modified Files
--------------
configure           | 2 ++
configure.in        | 2 ++
src/template/darwin | 1 +
3 files changed, 5 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: On macOS, use -isysroot in link steps as well as compile steps.
@ 2020-11-20 05:58 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-11-20 05:58 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

On macOS, use -isysroot in link steps as well as compile steps.

We previously put the -isysroot switch only into CPPFLAGS, theorizing
that it was only needed to find the right copies of include files.
However, it seems that we also need to use it while linking programs,
to find the right stub ".tbd" files for libraries.  We got away
without that up to now, but apparently that was mostly luck.  It may
also be that failures are only observed when the Xcode version is
noticeably out of sync with the host macOS version; the case that's
prompting action right now is that builds fail when using latest Xcode
(12.2) on macOS Catalina, even though it's fine on Big Sur.

Hence, add -isysroot to LDFLAGS as well.  (It seems that the more
common practice is to put it in CFLAGS, whence it'd be included at
both compile and link steps.  However, we can't mess with CFLAGS in
the platform template file without confusing configure's logic for
choosing default CFLAGS.)

Back-patch of 49407dc32 into all supported branches.

Report and patch by James Hilliard (some cosmetic mods by me)

Discussion: https://postgr.es/m/20201120003314.20560-1-james.hilliard1@gmail.com

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/d01e37845c2262a0b51a59c77ff8ad7b855824f8

Modified Files
--------------
configure           | 2 ++
configure.in        | 2 ++
src/template/darwin | 1 +
3 files changed, 5 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: On macOS, use -isysroot in link steps as well as compile steps.
@ 2020-11-20 05:58 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-11-20 05:58 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

On macOS, use -isysroot in link steps as well as compile steps.

We previously put the -isysroot switch only into CPPFLAGS, theorizing
that it was only needed to find the right copies of include files.
However, it seems that we also need to use it while linking programs,
to find the right stub ".tbd" files for libraries.  We got away
without that up to now, but apparently that was mostly luck.  It may
also be that failures are only observed when the Xcode version is
noticeably out of sync with the host macOS version; the case that's
prompting action right now is that builds fail when using latest Xcode
(12.2) on macOS Catalina, even though it's fine on Big Sur.

Hence, add -isysroot to LDFLAGS as well.  (It seems that the more
common practice is to put it in CFLAGS, whence it'd be included at
both compile and link steps.  However, we can't mess with CFLAGS in
the platform template file without confusing configure's logic for
choosing default CFLAGS.)

Back-patch of 49407dc32 into all supported branches.

Report and patch by James Hilliard (some cosmetic mods by me)

Discussion: https://postgr.es/m/20201120003314.20560-1-james.hilliard1@gmail.com

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/153bf8d2044a1bab07c151ae2b3c306c0b138161

Modified Files
--------------
configure           | 2 ++
configure.in        | 2 ++
src/template/darwin | 1 +
3 files changed, 5 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: On macOS, use -isysroot in link steps as well as compile steps.
@ 2020-11-20 05:58 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-11-20 05:58 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

On macOS, use -isysroot in link steps as well as compile steps.

We previously put the -isysroot switch only into CPPFLAGS, theorizing
that it was only needed to find the right copies of include files.
However, it seems that we also need to use it while linking programs,
to find the right stub ".tbd" files for libraries.  We got away
without that up to now, but apparently that was mostly luck.  It may
also be that failures are only observed when the Xcode version is
noticeably out of sync with the host macOS version; the case that's
prompting action right now is that builds fail when using latest Xcode
(12.2) on macOS Catalina, even though it's fine on Big Sur.

Hence, add -isysroot to LDFLAGS as well.  (It seems that the more
common practice is to put it in CFLAGS, whence it'd be included at
both compile and link steps.  However, we can't mess with CFLAGS in
the platform template file without confusing configure's logic for
choosing default CFLAGS.)

Back-patch of 49407dc32 into all supported branches.

Report and patch by James Hilliard (some cosmetic mods by me)

Discussion: https://postgr.es/m/20201120003314.20560-1-james.hilliard1@gmail.com

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/e7abc1111634f51dfb653fc95bb13cbf2468c466

Modified Files
--------------
configure           | 2 ++
configure.in        | 2 ++
src/template/darwin | 1 +
3 files changed, 5 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: On macOS, use -isysroot in link steps as well as compile steps.
@ 2020-11-20 05:58 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-11-20 05:58 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

On macOS, use -isysroot in link steps as well as compile steps.

We previously put the -isysroot switch only into CPPFLAGS, theorizing
that it was only needed to find the right copies of include files.
However, it seems that we also need to use it while linking programs,
to find the right stub ".tbd" files for libraries.  We got away
without that up to now, but apparently that was mostly luck.  It may
also be that failures are only observed when the Xcode version is
noticeably out of sync with the host macOS version; the case that's
prompting action right now is that builds fail when using latest Xcode
(12.2) on macOS Catalina, even though it's fine on Big Sur.

Hence, add -isysroot to LDFLAGS as well.  (It seems that the more
common practice is to put it in CFLAGS, whence it'd be included at
both compile and link steps.  However, we can't mess with CFLAGS in
the platform template file without confusing configure's logic for
choosing default CFLAGS.)

Back-patch of 49407dc32 into all supported branches.

Report and patch by James Hilliard (some cosmetic mods by me)

Discussion: https://postgr.es/m/20201120003314.20560-1-james.hilliard1@gmail.com

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2bb8c0f1d94dd4b2d23ae56b2f5ebec785d2df7b

Modified Files
--------------
configure           | 2 ++
configure.in        | 2 ++
src/template/darwin | 1 +
3 files changed, 5 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2020-11-20 05:58 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-11-20 05:07 pgsql: On macOS, use -isysroot in link steps as well as compile steps. Tom Lane <tgl@sss.pgh.pa.us>
2020-11-20 05:58 pgsql: On macOS, use -isysroot in link steps as well as compile steps. Tom Lane <tgl@sss.pgh.pa.us>
2020-11-20 05:58 pgsql: On macOS, use -isysroot in link steps as well as compile steps. Tom Lane <tgl@sss.pgh.pa.us>
2020-11-20 05:58 pgsql: On macOS, use -isysroot in link steps as well as compile steps. Tom Lane <tgl@sss.pgh.pa.us>
2020-11-20 05:58 pgsql: On macOS, use -isysroot in link steps as well as compile steps. Tom Lane <tgl@sss.pgh.pa.us>
2020-11-20 05:58 pgsql: On macOS, use -isysroot in link steps as well as compile steps. Tom Lane <tgl@sss.pgh.pa.us>
2020-11-20 05:58 pgsql: On macOS, use -isysroot in link steps as well as compile steps. Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox