commit 217b2749f9a7443f8baa7b1774cf92da08625b9c
parent 4f1336558c8da85a0e5c6f9ef19ed3e9e36dc049
Author: Joris Vink <joris@coders.se>
Date: Wed, 22 Oct 2014 18:32:36 +0200
Merge pull request #22 from thorduri/master
Simplify environment variables, abide by POLA.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/cli.c b/src/cli.c
@@ -282,7 +282,7 @@ cli_build(int argc, char **argv)
rootdir = appl;
}
- if ((p = getenv("KORE_COMPILER")) != NULL)
+ if ((p = getenv("CC")) != NULL)
compiler = p;
cfiles_count = 0;
@@ -879,7 +879,7 @@ cli_link_library(void *arg)
char *p, *libname, *flags[LD_FLAGS_MAX];
char *args[cfiles_count + 10 + LD_FLAGS_MAX];
- if ((p = getenv("KORE_LDFLAGS")) != NULL)
+ if ((p = getenv("LDFLAGS")) != NULL)
f = kore_split_string(p, " ", flags, LD_FLAGS_MAX);
else
f = 0;