Skip to content

Commit

Permalink
USE_LANGUAGES=c99 and fix linker arguments to fix build on SunOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
jperkin committed Oct 29, 2013
1 parent 78d1d0e commit e215c9a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion wm/notion/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 2013/10/18 11:41:18 bsiegert Exp $
# $NetBSD: Makefile,v 1.13 2013/10/29 11:13:32 jperkin Exp $

DISTNAME= notion-3-2013030200-src
PKGNAME= ${DISTNAME:S/3-/3./:S/-src//}
Expand All @@ -15,6 +15,7 @@ LICENSE= ion-license AND gnu-lgpl-v2.1
CONFLICTS= ion3-[0-9]*

WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
USE_LANGUAGES= c99
USE_TOOLS+= gmake msgfmt pax pkg-config
MAKE_FLAGS+= X11_PREFIX=${BUILDLINK_PREFIX.libX11}

Expand Down Expand Up @@ -52,6 +53,15 @@ INSTALLATION_DIRS= ${EGDIR}
CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
.endfor

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "SunOS"
# Abuse buildlink to add required libraries.
BUILDLINK_TRANSFORM+= opt:-Wl,--as-needed:-lsocket
BUILDLINK_TRANSFORM+= rm:-Wl,-whole-archive
BUILDLINK_TRANSFORM+= rm:-Wl,-no-whole-archive
.endif

post-install:
cd ${WRKSRC} && pax -rw contrib ${DESTDIR}${EGDIR}

Expand Down

0 comments on commit e215c9a

Please sign in to comment.