rsys

Basic data structures and low-level features
git clone git://git.meso-star.fr/rsys.git
Log | Files | Refs | README | LICENSE

commit 3ab9c7eab77aa90c4450b863b30e2571000042b2
parent bb6e72ecd4e68e128799a0132c76d25efe34c17f
Author: vaplv <vaplv@free.fr>
Date:   Sun,  7 May 2023 22:07:53 +0200

Set the RSYS_SHARED_BUILD macro even for static lib

In fact, this option has no effect on the construction of a static
library, but the same generated object files could not be used for the
shared library without it. So by defining the RSYS_SHARED_BUILD macro in
all situations, we can build the static library first and then the
shared library without having to recompile the object files.

Diffstat:
MMakefile | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -22,7 +22,6 @@ include config.mk LIBNAME_STATIC = librsys.a LIBNAME_SHARED = librsys.so -SYMBOL_SHARED = -DRSYS_SHARED_BUILD ################################################################################ # RSys building @@ -62,7 +61,7 @@ $(LIBNAME_STATIC): $(OBJ) @$(CC) $(CFLAGS_$(BUILD_TYPE)) -MM -MT "$(@:.d=.o) $@" $< -MF $@ .c.o: - $(CC) $(CFLAGS_$(BUILD_TYPE)) $(SYMBOL_$(LIB_TYPE)) -c $< -o $@ + $(CC) $(CFLAGS_$(BUILD_TYPE)) -DRSYS_SHARED_BUILD -c $< -o $@ ################################################################################ # Installation