pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/54974: adding games/dMagnetic to the pkgsrc (need help
The following reply was made to PR pkg/54974; it has been noted by GNATS.
From: Thomas Klausner <wiz%NetBSD.org@localhost>
To: NetBSD bugtracking <gnats-bugs%NetBSD.org@localhost>
Cc:
Subject: Re: pkg/54974: adding games/dMagnetic to the pkgsrc (need help
Date: Mon, 17 Feb 2020 11:45:26 +0100
--g4ijqfh2kkctuw3c
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Mon, Feb 17, 2020 at 09:30:01AM +0000, dettus%dettus.net@localhost wrote:
> >Number: 54974
> >Category: pkg
> >Synopsis: adding games/dMagnetic to the pkgsrc (need help
I've finished it and imported it into pkgsrc/games/dMagnetic.
I added one patch to make the program accept and use LDFLAGS from the
environment; this is needed e.g. for RELRO builds. Please integrate it
in the next version.
Thank you for the package!
Thomas
--g4ijqfh2kkctuw3c
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch-Makefile
$NetBSD: patch-Makefile,v 1.1 2020/02/17 10:43:44 wiz Exp $
Honor LDFLAGS.
--- Makefile.orig 2020-02-13 10:14:28.000000000 +0000
+++ Makefile
@@ -37,7 +37,7 @@ PROJ_HOME=./
INCFLAGS=-I$(PROJ_HOME)src/gui -I$(PROJ_HOME)src/toplevel -I$(PROJ_HOME)src/loader -I$(PROJ_HOME)src/engine/vm68k -I$(PROJ_HOME)src/engine/linea -I$(PROJ_HOME)src/engine/include
OBJDIR=$(PROJ_HOME)obj/
LINK=$(CC)
-LDFLAGS="-L"$(OBJDIR)
+LDFLAGS+="-L"$(OBJDIR)
SOURCES_LOADER= \
src/loader/maggfxloader.c
@@ -92,7 +92,7 @@ install: all dMagnetic.1 dMagneticini.5
dMagnetic: $(OBJ_LOADER) $(OBJ_LINEA) $(OBJ_VM68K) $(OBJ_GUI) $(OBJ_TOPLEVEL)
- $(LINK) -o $@ $(OBJ_LOADER) $(OBJ_LINEA) $(OBJ_VM68K) $(OBJ_GUI) $(OBJ_TOPLEVEL)
+ $(LINK) $(LDFLAGS) -o $@ $(OBJ_LOADER) $(OBJ_LINEA) $(OBJ_VM68K) $(OBJ_GUI) $(OBJ_TOPLEVEL)
.c.o:
$(CC) $(CFLAGS) $(CFLAGS_EXTRA) $(INCFLAGS) -c -o $@ $<
--g4ijqfh2kkctuw3c--
Home |
Main Index |
Thread Index |
Old Index