meta-openembedded/meta-oe/recipes-support/pcp/pcp/pass-options-to-AR.patch
Khem Raj 866715fa40 pcp: Fix build to exclude qt5
Pass right options to ar

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Lei Maohui <leimaohui@fujitsu.com>
2022-01-11 17:51:55 -08:00

30 lines
679 B
Diff

Do not pass cr option
These options are already coming from builddefs
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
--- a/src/include/builddefs.in
+++ b/src/include/builddefs.in
@@ -167,7 +167,7 @@ OBJECTS = $(ASFILES:.s=.o) \
#NB: don't override $(MAKE); gnumake sets it well, propagating -j etc.
#MAKE = @make@
-AR = @ar@
+AR = @ar@ cqs
CC = @cc@
CXX = @cxx@
LD = @ld@
--- a/src/include/buildrules
+++ b/src/include/buildrules
@@ -93,7 +93,7 @@ $(STATICLIBTARGET) : $(SUBDIRS) $(OBJECT
ifeq ($(TARGET_OS), darwin)
libtool -static -o $(STATICLIBTARGET) $?
else
- $(AR) cr $(STATICLIBTARGET) $?
+ $(AR) $(STATICLIBTARGET) $?
endif
endif