No, this is correct for building a shared library under Linux.

Do you really want to build shared libraries? What exactly is the goal of
your cross compilation?

Most likely, especially if your linker doesn't know about the soname
option, you only need static libraries, so make static should be enough for
you.

On Mon, Sep 5, 2016, 06:10 Pietro <[email protected]> wrote:

>
> Hi all,
>
> I want to cross compile the gRPC library for ARM and I am using the
> Yocto build system.
>
> The build fails for the following error, which I am suspicious has
> something to do with the compiler being used:
>
>
> [LD]      Linking
>
> /export/arm/xxx/PD15.1/build/tmp-glibc/work/cortexa8t2hf-vfp-neon-phytec-linux-gnueabi/libgrpc/1.0.0-r0/git/libs/opt/libgpr.so.1.0.0-pre1
>
> arm-phytec-linux-gnueabi-ld
> : unrecognized option '
> -Wl,-soname,libgpr.so.1
>
>
> arm-phytec-linux-gnueabi-ld
> : use the --help option for usage information
>
> The problem seems to be caused by the following line in the makefile:2406
>
>          $(Q) $(LD) $(LDFLAGS) -L$(LIBDIR)/$(CONFIG) -shared
>          -Wl,-soname,libgpr.so.1 -o
>          $(LIBDIR)/$(CONFIG)/libgpr$(SHARED_VERSION).$(SHARED_EXT)
>          $(LIBGPR_OBJS) $(LDLIBS) $(ZLIB_MERGE_LIBS)
> Shouldn't that line be -soname=libgrp.so ?
>
> --
> 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/87shte8pkv.fsf%40posteo.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/CAOWnRi8%3D6shoaSzvh9ja_qt%2BCTMSdg6s0S1gM4PNZ1ZjKSz6Hg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to