void-packages/srcpkgs/higan/patches/makefile-fixes.patch
John eb07b4bb6a New package: higan-106
Closes: #11618 [via git-merge-pr]
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2018-03-25 21:47:25 +02:00

24 lines
770 B
Diff

Description: Makefile fixes
* Remove -march=native build flag.
- This will cause gcc to use all instruction subsets
available on the build machine, meaning that the program
will not work on computers where they are not available.
- Also the flag is not supported on many architectures
(armhf, s390, s390x, powerpc, ia64, ...).
* Linking with dl is also required on kfreebsd.
Author: Tobias Hansen <thansen@debian.org>
--- higan/GNUmakefile
+++ higan/GNUmakefile
@@ -26,9 +26,8 @@
flags += -fopenmp
link += -fopenmp
ifeq ($(binary),application)
- flags += -march=native
link += -Wl,-export-dynamic
- link += -lX11 -lXext
+ link += -lX11 -lXext -ldl
else ifeq ($(binary),library)
flags += -fPIC
link += -shared