Skip to content

Cross compiling LTP #12

@awardak

Description

@awardak

The INSTALL file says:

= start =
To cross compile, you must specify the correct variables:

  1. When running configure (CC, CXX, CXXFLAGS, LDLIBS, etc).
  2. Manually edit include/mk/config.mk, as described in Configuration.

Note: Do not specify variables on the command-line. Use config.mk instead.
= end =

I copied include/mk/config.mk.default to include/mk/config.mk and edited include/mk/config.mk to include the my cross-compile variables:

CROSS_COMPILE :=
SYSROOT := --sysroot=
CC := $(CROSS_COMPILE)gcc $(SYSROOT)
LD := $(CROSS_COMPILE)ld $(SYSROOT)

I then ran "./configure --host=x86_64-linux-gnu --prefix=/nobackup/awardak/ltp/ltp-full-20140115/build/" and it overwrote my config.mk changes above.

How do I properly set my cross compilation env?

Thanks,
Aman

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions