0

我的项目有以下Makefile.am文件,但./configure由于找不到 CUnit 函数符号而失败。

bin_PROGRAMS = test_one test_two

AM_CFLAGS = -Wall -pedantic -I../src
AM_LDFLAGS = \
    -Wl,-z,relro \
    -Wl,-z,now
AM_LDADD = -lcunit -lmylib

test_one_SOURCES = test_one.c ../src/another.c
test_two_SOURCES = test_two.c ../src/another.c

如何在全局范围内为所有目标添加(CUnit)库?

4

0 回答 0