diff options
author | Jere Leppänen <jere.leppanen@nokia.com> | 2022-10-25 15:04:47 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2022-10-26 12:04:33 +0300 |
commit | 6d329d337987acd1ae1c1a55b9ba6e69d257e825 (patch) | |
tree | 58d8a098d74d09d2ba5d28cf4c2d91f7e488ec39 /test | |
parent | 6444d3a252f5fa4886a51c08e921b7d2f99d8779 (diff) |
test: misc: fix installcheck build test
Since pkg-config files had to be reverted in commits
4fe73be64 Revert "linux-gen: provide options to explicitly link static libodp-linux via pkg-config --static"
3ed57ffc5 Revert "helper: provide options to explicitly link static libodphelper via pkg-config --static"
we have to explicitly link libodp and libodphelper statically when
linking odp_api_headers_static. String replace the -l options with
-l:*.a options in the pkg-config outputs.
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Carl Wallen <carl.wallen@nokia.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/miscellaneous/Makefile.am | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/miscellaneous/Makefile.am b/test/miscellaneous/Makefile.am index 9f9038f87..95514edcb 100644 --- a/test/miscellaneous/Makefile.am +++ b/test/miscellaneous/Makefile.am @@ -35,7 +35,8 @@ installcheck-local: $(PROGRAM_static) $(PROGRAM_static): $(srcdir)/$(odp_api_headers_SOURCES) $(CC) $(AM_CFLAGS) $(CFLAGS) $^ -o $@ \ - `$(PKGCONFIG) --static libodphelper` `$(PKGCONFIG) --static lib$(ODP_LIB_NAME)` + `$(PKGCONFIG) --static libodphelper | sed "s/-lodphelper/-l:libodphelper.a/"` \ + `$(PKGCONFIG) --static lib$(ODP_LIB_NAME) | sed "s/-l$(ODP_LIB_NAME)/-l:lib$(ODP_LIB_NAME).a/"` if ! cross_compile ./$@ endif |