瀏覽代碼

Set $top_builddir in TESTS_ENVIRONMENT under examples/.

Ludovic Courtès 13 年之前
父節點
當前提交
f4f3572255
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/Makefile.am

+ 1 - 1
examples/Makefile.am

@@ -149,7 +149,7 @@ LOADER			=	loader
 loader_CPPFLAGS =  $(AM_CFLAGS) $(AM_CPPFLAGS) -I$(top_builddir)/src/
 LOADER_BIN		=	$(abs_top_builddir)/examples/$(LOADER)
 loader_SOURCES		=	../tests/loader.c
-TESTS_ENVIRONMENT	=	$(LOADER_BIN)
+TESTS_ENVIRONMENT	=	top_builddir="$(abs_top_builddir)" $(LOADER_BIN)
 endif
 
 examplebin_PROGRAMS +=				\