From: Oliver Schmidt
Date: Fri, 31 May 2013 19:30:14 +0000 (+0200)
Subject: Explicitly set search paths for libraries build.
X-Git-Tag: V2.15~275
X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7024e2789d3b673578e67bbbd731a8925eb77376;p=cc65
Explicitly set search paths for libraries build.
The libraries build is prepared to work with binaries not part of the current
working tree. But in this case the default search path surely points to some
other working tree. Even the binaries in this working tree might have been
compiled with non-standard builtin search paths.
Anyway when building the libraries we want always to use the headers from
the current working tree. Therefore we want to set them explicitly. Instead
of setting all in all five paths on the command lines of ca65, cc65 and ld65 I
opted to just set the single environment variable.
---
diff --git a/libsrc/Makefile b/libsrc/Makefile
index 5cdc1f659..4204f00bb 100644
--- a/libsrc/Makefile
+++ b/libsrc/Makefile
@@ -206,6 +206,8 @@ CC := $(if $(wildcard ../bin/cc65*),../bin/cc65,cc65)
CO := $(if $(wildcard ../bin/co65*),../bin/co65,co65)
LD := $(if $(wildcard ../bin/ld65*),../bin/ld65,ld65)
+export CC65_HOME := $(abspath ..)
+
##########
define ASSEMBLE_recipe