From 17741a1a7995c8a3bce91cefeacf9adc6e4a8c7c Mon Sep 17 00:00:00 2001 From: q66 Date: Thu, 2 Jan 2020 01:04:30 +0100 Subject: [PATCH] openmsx: use our own cflags/ldflags --- srcpkgs/openmsx/template | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/srcpkgs/openmsx/template b/srcpkgs/openmsx/template index d7bebfb9d05..07dceb71dc5 100644 --- a/srcpkgs/openmsx/template +++ b/srcpkgs/openmsx/template @@ -1,7 +1,7 @@ # Template file for 'openmsx' pkgname=openmsx version=0.15.0 -revision=1 +revision=2 hostmakedepends="pkg-config python" makedepends="SDL-devel glew-devel libao-devel libtheora-devel libvorbis-devel libpng-devel libxml2-devel SDL_ttf-devel tcl-devel" @@ -12,6 +12,7 @@ homepage="https://openmsx.org" distfiles="https://github.com/openMSX/openMSX/releases/download/RELEASE_${version//\./_}/openmsx-${version}.tar.gz" checksum=93f209d8fed2e04e62526469bb6bb431b82ea4d07ecdc45dab2b8cc4ca21d62a nocross="can't use CXX prefixed with triplet" +CXXFLAGS="-Wno-narrowing -O3" do_build() { vsed -e 's@\(SYMLINK_FOR_BINARY:=\)true@\1false@' -i build/custom.mk @@ -19,9 +20,12 @@ do_build() { echo 'INSTALL_DOC_DIR:=/usr/share/doc/openmsx' >> build/custom.mk echo 'INSTALL_SHARE_DIR:=/usr/share/openmsx' >> build/custom.mk echo 'INSTALL_BINARY_DIR:=/usr/bin' >> build/custom.mk - make ${makejobs} + echo "CXXFLAGS += ${CXXFLAGS}" >> build/flavour-void.mk + local ldflags=$(echo $LDFLAGS|sed 's/-Wl,//g') + echo "LDFLAGS += ${ldflags}" >> build/flavour-void.mk + make ${makejobs} OPENMSX_FLAVOUR=void } do_install() { - make DESTDIR=${DESTDIR} install + make DESTDIR=${DESTDIR} install OPENMSX_FLAVOUR=void }