mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
Closes: https://bugs.gentoo.org/722592 Closes: https://bugs.gentoo.org/742173 Package-Manager: Portage-3.0.7, Repoman-3.0.1 Signed-off-by: David Seifert <soap@gentoo.org>
46 lines
1.1 KiB
Diff
46 lines
1.1 KiB
Diff
--- a/host-src/tool/Makefile
|
|
+++ b/host-src/tool/Makefile
|
|
@@ -1,18 +1,13 @@
|
|
include ../../Makefile.cfg
|
|
|
|
-CC = $(HOSTCC)
|
|
-CFLAGS = $(HOSTCFLAGS) -DDREAMCAST_IP=\"$(DREAMCAST_IP)\" -DHAVE_GETOPT
|
|
-INCLUDE = -I$(BFDINCLUDE)
|
|
+CPPFLAGS += -DDREAMCAST_IP=\"$(DREAMCAST_IP)\" -DHAVE_GETOPT
|
|
|
|
OBJECTS = dc-tool.o syscalls.o
|
|
|
|
-.c.o:
|
|
- $(CC) $(CFLAGS) $(INCLUDE) -o $@ -c $<
|
|
-
|
|
all: dc-tool
|
|
|
|
dc-tool: $(OBJECTS)
|
|
- $(CC) -o $@ $(OBJECTS) $(BFDLIB)
|
|
+ $(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(BFDLIB)
|
|
|
|
.PHONY : install
|
|
install: dc-tool
|
|
--- a/Makefile.cfg
|
|
+++ b/Makefile.cfg
|
|
@@ -8,8 +8,8 @@
|
|
# the ones in your system
|
|
|
|
# these must point to your sh-elf bfd, not the system one
|
|
-BFDLIB = -L/usr/local/dcdev/lib -lbfd -liberty
|
|
-BFDINCLUDE = /usr/local/dcdev/include
|
|
+BFDLIB = -lbfd -liberty
|
|
+BFDINCLUDE =
|
|
|
|
# cygwin
|
|
# these must point to your sh-elf bfd, not the system one
|
|
@@ -24,7 +24,7 @@
|
|
|
|
# you generally shouldn't change this unless you are making forked
|
|
# versions (or test versions)
|
|
-VERFLAGS = -DDCLOAD_VERSION=\"1.0.4\"
|
|
+CPPFLAGS += -DDCLOAD_VERSION=\"1.0.4\"
|
|
TARGETCFLAGS += $(VERFLAGS)
|
|
HOSTCFLAGS += $(VERFLAGS)
|
|
|