Skip to content

Commit

Permalink
port-gcc needs to use C++11 to use non-static initializers. Apparently
Browse files Browse the repository at this point in the history
LLVM doesn't care.

Submitted upstream: milkytracker/MilkyTracker#328

Fixes build on sparc64
  • Loading branch information
kmosiejczuk committed Sep 29, 2023
1 parent 1f77d3d commit 1264468
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion audio/milkytracker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ GH_PROJECT = MilkyTracker
GH_TAGNAME = v1.04.00

PKGNAME = ${DISTNAME:L}
REVISION = 0
REVISION = 1

CATEGORIES = audio

Expand Down
16 changes: 16 additions & 0 deletions audio/milkytracker/patches/patch-CMakeLists_txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
ports-gcc needs to be told to use C++11

https://github.com/milkytracker/MilkyTracker/pull/328

Index: CMakeLists.txt
--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -23,7 +23,7 @@ cmake_minimum_required(VERSION 3.10)
project(MilkyTracker)

# Set C++ standard to C++98
-set(CMAKE_CXX_STANDARD 98)
+set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_EXTENSIONS OFF)

# Enable IDE solution folders

0 comments on commit 1264468

Please sign in to comment.