diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2021-10-14 01:08:40 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2021-10-14 01:08:40 +0000 |
commit | ca1933d1c00b733ed535caeff5812e1d40442e0b (patch) | |
tree | 51eb7f371ed7f32e52e35c68c934d4636edd6974 | |
parent | dd3b4f6d0e27057077e555900c56176583344f9e (diff) |
sysutils/uschedule: fix build on non-x86
Use GCC:
uogetopt.c:49:2: error: 'regparm' is not valid on this platform
attribute_regparm(2);
While not correct outside of i386, GCC can compile this code.
-rw-r--r-- | sysutils/uschedule/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sysutils/uschedule/Makefile b/sysutils/uschedule/Makefile index b9db7fabf5f5..5e1034ce09cf 100644 --- a/sysutils/uschedule/Makefile +++ b/sysutils/uschedule/Makefile @@ -31,6 +31,12 @@ PLIST_FILES= ${bin:S,^,bin/,} ${bin:S,^,man/man1/,:S,$,.1.gz,} \ OPTIONS_DEFINE= DOCS +.include <bsd.port.options.mk> + +.if ${ARCH} != amd64 && ${ARCH} != i386 +USES+= compiler:gcc-c++11-lib +.endif + pre-build: ${ECHO_CMD} "${CC}" > ${WRKSRC}/src/conf-cc ${ECHO_CMD} "${CFLAGS}" > ${WRKSRC}/src/conf-cflags |