freebsd-ports/comms/flrig/Makefile
Piotr Kubaj 9d7eaa9c4c comms/flrig: fix build on powerpc64
Add -mminimal-toc to CFLAGS on powerpc64 to fix linking:
/usr/bin/ld: rigs/flrig-TS950.o(.text+0x1c40): sibling call optimization to `_ZN7rigbaseD2Ev' does not allow automatic multiple TOCs; recompile with -mminimal-toc or -fno-optimize-sibling-calls, or make `_ZN7rigbaseD2Ev' extern

PR:		237816
Approved by:	tcberner (mentor), db (maintainer, via email)
Differential Revision:	https://reviews.freebsd.org/D20217
2019-05-10 11:16:15 +00:00

31 lines
734 B
Makefile

# Created by: Stephen Hurd <shurd@FreeBSD.org>
# $FreeBSD$
PORTNAME= flrig
PORTVERSION= 1.3.43
CATEGORIES= comms hamradio
MASTER_SITES= SF/fldigi/${PORTNAME}
MAINTAINER= hamradio@FreeBSD.org
COMMENT= Ham Radio rig control program, cooperates with fldigi
LICENSE= GPLv2
LIB_DEPENDS= libfltk.so:x11-toolkits/fltk
USES= gmake
GNU_CONFIGURE= yes
CONFIGURE_ENV= FLTK_CONFIG="${LOCALBASE}/bin/fltk-config"
PLIST_FILES= bin/flrig share/applications/flrig.desktop \
share/pixmaps/flrig.xpm
OPTIONS_DEFINE= NATIVE_OPT
NATIVE_OPT_DESC= Enable Native Optimizations
NATIVE_OPT_CONFIGURE_ON+= --enable-optimizations=native
NATIVE_OPT_CONFIGURE_OFF+= --enable-optimizations=none
CFLAGS_powerpc64= -mminimal-toc
.include <bsd.port.mk>