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 | |
parent | 1566182a6ed52c11f21b6e5e56880ccc28dde91c (diff) | |
download | pkgsrc-e359f74cacec17804f3d0e61eb77a516757de42c.tar.gz |
postgres*: detect NetBSD/sparc correctly
Diffstat (limited to 'databases')
-rw-r--r-- | databases/postgresql10/Makefile.common | 6 | ||||
-rw-r--r-- | databases/postgresql11/Makefile.common | 6 | ||||
-rw-r--r-- | databases/postgresql12/Makefile.common | 6 | ||||
-rw-r--r-- | databases/postgresql13/Makefile.common | 6 | ||||
-rw-r--r-- | databases/postgresql96/Makefile.common | 6 |
5 files changed, 25 insertions, 5 deletions
diff --git a/databases/postgresql10/Makefile.common b/databases/postgresql10/Makefile.common index 58ed1525be5..8adf509e698 100644 --- a/databases/postgresql10/Makefile.common +++ b/databases/postgresql10/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.28 2021/05/18 11:56:16 adam Exp $ +# $NetBSD: Makefile.common,v 1.29 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 diff --git a/databases/postgresql11/Makefile.common b/databases/postgresql11/Makefile.common index e62aa6802d0..c60e81bc99a 100644 --- a/databases/postgresql11/Makefile.common +++ b/databases/postgresql11/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.21 2021/05/18 11:56:17 adam Exp $ +# $NetBSD: Makefile.common,v 1.22 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 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 diff --git a/databases/postgresql13/Makefile.common b/databases/postgresql13/Makefile.common index 755006b8116..1c57de860df 100644 --- a/databases/postgresql13/Makefile.common +++ b/databases/postgresql13/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.7 2021/05/18 11:56:19 adam Exp $ +# $NetBSD: Makefile.common,v 1.8 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 diff --git a/databases/postgresql96/Makefile.common b/databases/postgresql96/Makefile.common index ac35bc7cc5c..70600b628b7 100644 --- a/databases/postgresql96/Makefile.common +++ b/databases/postgresql96/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.33 2021/05/18 11:56:21 adam Exp $ +# $NetBSD: Makefile.common,v 1.34 2021/06/13 08:56:27 nia Exp $ # # This Makefile fragment is included by all PostgreSQL packages built from # the main sources of the PostgreSQL distribution except jdbc-postgresql. @@ -89,6 +89,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 |