Change search paths for the linker.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4193 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2009-09-18 19:00:24 +00:00
parent beef3a3d85
commit 9a4ec37b40
2 changed files with 16 additions and 19 deletions

View File

@@ -41,19 +41,6 @@
/*****************************************************************************/
/* Data */
/*****************************************************************************/
/* If the standard library search path is not given, use a hardcoded one */
#ifndef CC65_LIB
#define CC65_LIB "/usr/lib/cc65/lib/"
#endif
/*****************************************************************************/
/* Code */
/*****************************************************************************/
@@ -66,8 +53,16 @@ void InitSearchPaths (void)
/* Always search all stuff in the current directory */
AddSearchPath ("", SEARCH_LIB | SEARCH_OBJ | SEARCH_CFG);
/* Add a standard path for the libraries and objects */
AddSearchPath (CC65_LIB, SEARCH_LIB | SEARCH_OBJ | SEARCH_CFG);
/* Add some compiled in search paths if defined on the command line */
#if defined(LD65_LIB)
AddSearchPath (LD65_LIB, SEARCH_LIB);
#endif
#if defined(LD65_OBJ)
AddSearchPath (LD65_OBJ, SEARCH_OBJ);
#endif
#if defined(LD65_CFG)
AddSearchPath (LD65_CFG, SEARCH_CFG);
#endif
/* Add paths from the environment */
AddSearchPathFromEnv ("LD65_LIB", SEARCH_LIB);