When cross compiling and passing the AR variable from the make command line I had to apply the follwing patch :
diff --git a/Makefile b/Makefile index 2dc401a..e1f0755 100644 --- a/Makefile +++ b/Makefile @@ -283,6 +283,8 @@ LDXX ?= $(LDXX_$(CONFIG)) ifeq ($(SYSTEM),Linux) ifeq ($(origin AR), default) AR = ar rcs +else +override AR += rcs endif STRIP ?= strip --strip-unneeded else Otherwise the AR tool does not get any command to be executed and it will print its helper. I am not sure that is the best approach I wanted to share it tough. Nicolas Noble <[email protected]> writes: > D'oh, thank you, I didn't spot that he was directly using ld instead > of gcc. > > On Wed, Sep 7, 2016 at 12:28 PM, Lars Seipel <[email protected]> > wrote: > > On Mon, Sep 05, 2016 at 01:05:04PM +0000, Pietro wrote: > > arm-phytec-linux-gnueabi-ld > > : unrecognized option ' > > -Wl,-soname,libgpr.so.1 > > That specific error is likely avoided by using the gcc or g++ > compiler > drivers (as appropriate) instead of plain ld. > > > Shouldn't that line be -soname=libgrp.so ? > > The -Wl flag instructs the driver program to pass through the > arguments > (-soname and libgpr.so.1) to ld, so the resulting ld command line > will > contain "-soname libgpr.so.1". > > -- > You received this message because you are subscribed to the Google > Groups "grpc.io" group. > To unsubscribe from this group and stop receiving emails from it, > send an email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/grpc-io. > To view this discussion on the web visit > > https://groups.google.com/d/msgid/grpc-io/20160907192836.GA1331%40propane.slrz.net > . > > > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/87d1ke7h8s.fsf%40posteo.net. For more options, visit https://groups.google.com/d/optout.
