Hi Thomas,

I found some info in libgpg-error-1.21/README for cross compiling. I was not 
able to understand fully. 
Could you please guide me based on this.


Cross-Compiling
---------------

Libgpg-error needs to figure out some platform specific properties.
These are used to build the platform specific gpg-error.h file.  The
detection is done during build time but can't be done when
cross-compiling.  Thus if you run into an error during building you
need to figure out these values.  You may use these commands:

  build="$(build-aux/config.guess)"
  ./configure --prefix=TARGETDIR --host=TARGET --build=$build
  cd src
  make gen-posix-lock-obj
  scp gen-posix-lock-obj TARGET:
  ssh TARGET ./gen-posix-lock-obj >tmp.h
  mv tmp.h "syscfg/$(awk 'NR==1 {print $2}' tmp.h)"

If you are using a VPATH build adjust accordingly.  If this all works
for you (make sure to run the test programs on the target platform),
please send the generated file to the gnupg-devel mailing list so that
we can include it in the next release.  Note that in addition to the
aliasing done by config.sub the src/mkheader build tool does some
extra aliasing to avoid having too much identical syscfg files.

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Thomas D.
Sent: Monday, January 25, 2016 12:59 AM
To: 'rsyslog-users'
Subject: Re: [rsyslog] Compiling libgpg-error-1.21 for rsyslog-8.15.0: 
unrecognized option '--64'

Hi,

I don't know how your build environment looks like but

> It is correct to use $(CPP)

should be fine when you your build environment will set it to the right value.


Again,

> as: unrecognized option '--64'

indicates that your environment is using an invalid (incompatible) "as"
version. Check your binutils.
Make sure you have the right version installed and that you are really calling 
the right version.

Don't forget to check your CFLAGS, CXXFALGS, LDFLAGS...


-Thomas


_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards NOTE WELL: This is 
a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our 
control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to