diff options
author | nia <nia@pkgsrc.org> | 2021-06-13 08:56:26 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2021-06-13 08:56:26 +0000 |
commit | e359f74cacec17804f3d0e61eb77a516757de42c (patch) | |
tree | 3caa436c12350095bd37fa24959ce2a88612e901 /databases/postgresql12 | |
parent | 1566182a6ed52c11f21b6e5e56880ccc28dde91c (diff) | |
download | pkgsrc-e359f74cacec17804f3d0e61eb77a516757de42c.tar.gz |
postgres*: detect NetBSD/sparc correctly
Diffstat (limited to 'databases/postgresql12')
-rw-r--r-- | databases/postgresql12/Makefile.common | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/databases/postgresql12/Makefile.common b/databases/postgresql12/Makefile.common index 6b8e607002d..5560f952c4a 100644 --- a/databases/postgresql12/Makefile.common +++ b/databases/postgresql12/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.14 2021/05/18 11:56:18 adam Exp $ +# $NetBSD: Makefile.common,v 1.15 2021/06/13 08:56:26 nia Exp $ # # This Makefile fragment is included by all PostgreSQL packages built from # the main sources of the PostgreSQL distribution except jdbc-postgresql. @@ -88,6 +88,10 @@ CONFIGURE_ENV+= pgac_cv_prog_cc_ldflags__Wl___as_needed=no # https://www.postgresql.org/message-id/E1X0yaj-000753-N6%40gemulon.postgresql.org BROKEN_ON_PLATFORM+= *-*-alpha +.if ${MACHINE_ARCH} == "sparc" +CFLAGS.NetBSD+= -D__sparc_v8__ +.endif + # configure fails on OpenBSD and MirBSD if thread safety is enabled. CONFIGURE_ARGS.MirBSD+= --disable-thread-safety CONFIGURE_ARGS.OpenBSD+= --disable-thread-safety |