Browse Source

Add outdir to library paths.

scossu 1 year ago
parent
commit
28ff18b32d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Makefile

+ 2 - 2
Makefile

@@ -24,7 +24,7 @@ CFLAGS = $(_CFLAGS) -O3
 DBG_CFLAGS = $(_CFLAGS) -Itest -O0 -g3 -DDEBUG
 # NOTE: -luuid is a Linux system library. Other OS's might need a different
 # link or a non-system library built.
-LDFLAGS ::= -L. -L$(libdir) -llmdb -lxxhash -luuid
+LDFLAGS ::= -L. -L$(outdir) -L$(libdir) -llmdb -lxxhash -luuid
 
 PARSER = bin/lemon
 LEMON_SRC = ext/sqlite/tool/lemon.c
@@ -71,7 +71,7 @@ DOCS = docs
 ## Environment.
 
 # Tests need the freshly compiled libs.
-export LD_LIBRARY_PATH = .:$(libdir)
+export LD_LIBRARY_PATH = $(outdir):$(libdir)
 
 
 ## Rules.