moonlander: unbreak with ld.lld on powerpc
powerpc does not inline sqrt(3) unlike other lld archs, so it actually uses libm and as such the `-lm' linker flag is needed. While here, refresh WANTLIB and add FIX_EXTRACT_PERMISSIONS. tweak and ok gkoehler@
This commit is contained in:
parent
019b0fdc24
commit
47e0576cbb
@ -1,18 +1,20 @@
|
||||
# $OpenBSD: Makefile,v 1.14 2020/03/20 16:44:23 naddy Exp $
|
||||
# $OpenBSD: Makefile,v 1.15 2021/08/28 09:07:11 cwen Exp $
|
||||
|
||||
COMMENT= clone of atari game
|
||||
DISTNAME= moon-lander-1.0
|
||||
PKGNAME= moonlander-1.0
|
||||
REVISION= 2
|
||||
REVISION= 3
|
||||
CATEGORIES= games x11
|
||||
MASTER_SITES= http://downloads.daveblood.com/lunar_lander/
|
||||
|
||||
FIX_EXTRACT_PERMISSIONS= yes
|
||||
|
||||
HOMEPAGE= http://magigames.org/moonlander.html
|
||||
|
||||
# BSD
|
||||
PERMIT_PACKAGE= Yes
|
||||
|
||||
WANTLIB= SDL X11 Xext c m pthread usbhid xcb SDL_image SDL_mixer
|
||||
WANTLIB += SDL SDL_image SDL_mixer c m pthread
|
||||
|
||||
LIB_DEPENDS= devel/sdl-image \
|
||||
devel/sdl-mixer
|
||||
|
@ -1,6 +1,11 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2003/04/15 16:01:42 espie Exp $
|
||||
--- Makefile.orig Tue Aug 14 18:28:49 2001
|
||||
+++ Makefile Thu Apr 10 14:54:33 2003
|
||||
$OpenBSD: patch-Makefile,v 1.2 2021/08/28 09:07:11 cwen Exp $
|
||||
|
||||
The `-lm' linker flag is needed for architectures not inlining sqrt(3), like
|
||||
powerpc.
|
||||
|
||||
Index: Makefile
|
||||
--- Makefile.orig
|
||||
+++ Makefile
|
||||
@@ -1,26 +1,20 @@
|
||||
# Makefile for test program for game_libs - lunar lander
|
||||
-CFLAGS=-Wall `sdl-config --libs --cflags`
|
||||
@ -9,7 +14,7 @@ $OpenBSD: patch-Makefile,v 1.1.1.1 2003/04/15 16:01:42 espie Exp $
|
||||
+#CC=gcc
|
||||
|
||||
-LIBS=SDL_image
|
||||
+LIBS=`sdl-config --libs` -lSDL_image -lSDL_mixer
|
||||
+LIBS=`sdl-config --libs` -lSDL_image -lSDL_mixer -lm
|
||||
|
||||
C_FILES=moon_lander.c game_lib.c DT_drawtext.c
|
||||
OBJ_FILES=moon_lander.o game_lib.o DT_drawtext.o
|
||||
|
Loading…
Reference in New Issue
Block a user