]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9515 - Fix .lo file generation during build process
authorQuanah Gibson-Mount <quanah@openldap.org>
Thu, 1 Apr 2021 17:22:45 +0000 (17:22 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 1 Apr 2021 17:22:45 +0000 (17:22 +0000)
contrib/slapd-modules/datamorph/Makefile
contrib/slapd-modules/variant/Makefile

index a01ec48cdfdd11b759339a76b0f70a8cf77f2e1e..156a20503d1fa743c674f30e11502d28c4afbe8b 100644 (file)
@@ -49,10 +49,12 @@ sp :=
 dir := tests
 include $(dir)/Rules.mk
 
-%.lo: %.c
+.SUFFIXES: .c .o .lo
+
+.c.lo:
        $(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $<
 
-%.la: %.lo
+datamorph.la: datamorph.lo
        $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info $(LTVER) \
                -rpath $(moduledir) -module -o $@ $? $(LIBS)
 
index 43a23b8349766986319e00d65d28a8c9a70afc4d..00d9f7364f038468953db41075b48e6809854327 100644 (file)
@@ -49,10 +49,12 @@ sp :=
 dir := tests
 include $(dir)/Rules.mk
 
-%.lo: %.c
+.SUFFIXES: .c .o .lo
+
+.c.lo:
        $(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $<
 
-%.la: %.lo
+variant.la: variant.lo
        $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info $(LTVER) \
                -rpath $(moduledir) -module -o $@ $? $(LIBS)