1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Fix build on GCC-based systems:

via USES=compiler:c++0x:
    cc1plus: error: unrecognized command line option "-std=gnu++0x"
  via patchfile:
    g++9: error: unrecognized argument in option '-mtune=generic'

Approved by:	portmgr (tier-2 blanket)
This commit is contained in:
Mark Linimon 2019-12-12 00:25:26 +00:00
parent 4c58611fb5
commit 57e451d394
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=519849
2 changed files with 12 additions and 1 deletions

View File

@ -16,7 +16,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= lv2>0:audio/lv2 \
bash:shells/bash
USES= gmake pkgconfig shebangfix
USES= compiler:c++0x gmake pkgconfig shebangfix
SHEBANG_GLOB= *.sh
USE_GITHUB= yes
GH_ACCOUNT= SpotlightKid

View File

@ -0,0 +1,11 @@
--- dpf/Makefile.base.mk.orig 2019-11-04 21:45:33 UTC
+++ dpf/Makefile.base.mk
@@ -129,7 +129,7 @@ endif
# Set build and link flags
BASE_FLAGS = -Wall -Wextra -pipe -MD -MP
-BASE_OPTS = -O3 -ffast-math -mtune=generic -fdata-sections -ffunction-sections
+BASE_OPTS = -O3 -ffast-math -fdata-sections -ffunction-sections
ifeq ($(CPU_I386_OR_X86_64),true)
BASE_OPTS += -msse -msse2