1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/testing/ponyc/makefile-remove-march-mtune.patch
prspkt 7ffb9c86bb testing/ponyc: upgrade to 0.33.0
Add static subpackage and rework failing march/mtune patch.

New version defaults to statically linking against llvm-libs. Use
`link=llvm-dynamic` to revert.
2019-11-03 18:33:34 -03:00

39 lines
1.1 KiB
Diff

Don't hassle with -march and -mtune, use gcc defaults.
diff --git a/Makefile-ponyc b/Makefile-ponyc
index 50f4936..8f28e1a 100644
--- a/Makefile-ponyc
+++ b/Makefile-ponyc
@@ -108,9 +108,9 @@ else
endif
LIB_EXT ?= a
-BUILD_FLAGS = -march=$(arch) -mtune=$(tune) -Werror -Wconversion \
+BUILD_FLAGS = -Werror -Wconversion \
-Wno-sign-conversion -Wextra -Wall
-LINKER_FLAGS = -march=$(arch) -mtune=$(tune) $(LDFLAGS)
+LINKER_FLAGS = $(LDFLAGS)
AR_FLAGS ?= rcs
ALL_CFLAGS = -std=gnu11 -fexceptions \
-DPONY_VERSION=\"$(tag)\" -DLLVM_VERSION=\"$(llvm_version)\" \
@@ -120,7 +120,7 @@ ALL_CFLAGS = -std=gnu11 -fexceptions \
-DPONY_VERSION_STR=\"$(version_str)\" \
-D_FILE_OFFSET_BITS=64
ALL_CXXFLAGS = -std=gnu++11 -fno-rtti
-LL_FLAGS = -mcpu=$(cpu)
+LL_FLAGS =
# Determine pointer size in bits.
BITS := $(bits)
@@ -147,11 +147,6 @@
endif
endif
-ifneq ($(fpu),)
- BUILD_FLAGS += -mfpu=$(fpu)
- LINKER_FLAGS += -mfpu=$(fpu)
-endif
-
ifdef link
ifeq (,$(filter $(link),static llvm-static llvm-dynamic))
$(error Unknown linking strategy "$(link)")