diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2022-06-22 23:00:44 +0100 |
---|---|---|
committer | Nigel Croxon <ncroxon@redhat.com> | 2022-07-25 10:39:43 -0400 |
commit | 2ed6486834634130fe7bc9b8803b0113767fc7c1 (patch) | |
tree | 076a9cd8fe75e9b711f923bfd89923e4b27d36ac | |
parent | 6b28563584edd08ab9c94a746a8061434c165837 (diff) | |
download | gnu-efi-2ed6486834634130fe7bc9b8803b0113767fc7c1.tar.gz |
lib/Makefile: add .o file dependency on libsubdirs targets
Without the change there is no guarantee that .o files will be built
after directories are created for them and build fails as:
gcc -I/build/gnu-efi-code//lib ... -c lib/runtime/rtstr.c -o runtime/rtstr.o
Assembler messages:
Fatal error: can't create runtime/rtstr.o: No such file or directory
-rw-r--r-- | lib/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Makefile b/lib/Makefile index cf4239d..1fc6a47 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -74,6 +74,8 @@ all: libsubdirs libefi.a libsubdirs: for sdir in $(SUBDIRS); do mkdir -p $$sdir; done +$(OBJS): libsubdirs + libefi.a: $(OBJS) $(AR) $(ARFLAGS) $@ $^ @@ -89,5 +91,3 @@ $(LIBDIRINSTALL)/libefi.a: libefi.a | $(LIBDIRINSTALL) install: $(LIBDIRINSTALL)/libefi.a include $(SRCDIR)/../Make.rules - -.PHONY: libsubdirs |