diff options
| author | Thomas Voss <mail@thomasvoss.com> | 2024-02-14 00:39:57 +0100 | 
|---|---|---|
| committer | Thomas Voss <mail@thomasvoss.com> | 2024-02-14 00:39:57 +0100 | 
| commit | 7f170ee856a07769a2db9a373efecb690a9840ee (patch) | |
| tree | e7c4359beb497171d26a158af12def063fd78c84 | |
| parent | 7f3bf501977d7d2801add2cf2e5f843fe1a9d179 (diff) | |
Build librune for Ahoy
| -rw-r--r-- | make.c | 9 | 
1 files changed, 8 insertions, 1 deletions
@@ -51,6 +51,7 @@ static void cmdput2(cmd_t);  static uint64_t flags;  static const char *argv0; +static bool librune_built;  static void  usage(void) @@ -156,6 +157,8 @@ build_ahoy(void)  	cmd_t c = {0};  	struct strv sv = {0}; +	build_librune(); +  	if (glob("src/ahoy/*.c", 0, globerr, &g))  		die("glob"); @@ -200,7 +203,7 @@ build_ahoy(void)  		cmdadd(&c, "-flto");  	cmdadd(&c, "-o", c.dst);  	cmdaddv(&c, objs, g.gl_pathc); -	cmdadd(&c, "src/common/cerr.o"); +	cmdadd(&c, "src/common/cerr.o", "vendor/librune/librune.a");  	CMDPRC2(c);  out: @@ -291,6 +294,10 @@ build_librune(void)  	cmd_t c = {0};  	struct strv sv = {0}; +	if (librune_built) +		return; +	librune_built = true; +  	env_or_default(&sv, "CC", CC);  	if (FLAGSET('f')  |