Menu

#9 Cross compilation patch for configure and Makefiles

open
nobody
None
5
2006-04-13
2006-04-13
Lionel Ains
No

This patch allows for easier cross-compilation of rp-l2tp.
It modifies configure.in and Makefile.in files.
A configure script generated by GNU autoconf 2.59 also
replaces the previous configure script (this is taking
the first part of the patch and can actually be
generated directly from the patched configure.in using
autoconf).

This patch applies to rp-l2tp-0.4

Here is a example on how to call the configure script
for cross-compilation (for a MIPS target)
./configure \ CC=$(XTOOLCHAIN_PATH)/mips-linux/bin/gcc \ AR=$(XTOOLCHAIN_PATH)/mips-linux/bin/ar \ RANLIB=$(XTOOLCHAIN_PATH)/mips-linux/bin/ranlib \ STRIP=$(XTOOLCHAIN_PATH)/mips-linux/bin/strip \ --host=mips \ --prefix=$(TARGET_ROOTFS_PATH)

Discussion

  • Lionel Ains

    Lionel Ains - 2006-04-21

    New patch

     
  • Lionel Ains

    Lionel Ains - 2006-04-21

    Logged In: YES
    user_id=1501209

    New patch replaces previous one and fixes ifndef clauses in
    Makefiles.
    Also, output libraries (in /lib/l2tp/plugin/*.so) are
    automatically stripped at build time.

     

Log in to post a comment.