X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=Makefile.am;h=9e165467764cbef86ca698c7b935fc7786ccb637;hb=9edd34bd25f52dd39b354a84f02697254121aefd;hp=6957f07de11c00c278f30e66f8f007b677457ddd;hpb=cacf036243594e11fc8a7e0f47f07af97a79042f;p=ust.git diff --git a/Makefile.am b/Makefile.am index 6957f07..9e16546 100644 --- a/Makefile.am +++ b/Makefile.am @@ -16,7 +16,7 @@ ldscripts_DATA = libust.so libust-initializer.o CLEANFILES = $(ldscripts_DATA) ./tests/libust-initializer.Po libust.so: libust.ldscript.in - $(SED) -e "s@\@FORMAT\@@$(LIBFORMAT)@" < $< > $@ + $(SED) -e $(if $(LIBFORMAT),"s@\@FORMAT\@@$(LIBFORMAT)@","s@.*\@FORMAT\@.*@@") < $< > $@ # It is very important to compile the initializer with PIC otherwise we # may get obscure errors when linking to shared libraries.