Add $[AR] to make Linux cross-compilation a little bit easier

This commit is contained in:
rdb 2010-04-12 17:37:42 +00:00
parent c9073b1d80
commit fb6b4c0ceb
2 changed files with 8 additions and 4 deletions

View File

@ -27,6 +27,7 @@
#if $[eq $[USE_COMPILER], GCC]
#define CC gcc
#define CXX g++
#define AR ar
// gcc might run into template limits on some parts of Panda.
// I upped this from 25 to build on OS X (GCC 3.3) -- skyler.
@ -34,6 +35,7 @@
#else
#define CC cc
#define CXX CC
#define AR ar
#endif
// FreeBSD doesn't (yet) have any funny architecture flags.
@ -102,8 +104,8 @@
// How to generate a static C or C++ library. $[target] is the
// name of the library to generate, and $[sources] is the list of .o
// files that will go into the library.
#defer STATIC_LIB_C ar cru $[target] $[sources]
#defer STATIC_LIB_C++ ar cru $[target] $[sources]
#defer STATIC_LIB_C $[AR] cru $[target] $[sources]
#defer STATIC_LIB_C++ $[AR] cru $[target] $[sources]
// How to run ranlib, if necessary, after generating a static library.
// $[target] is the name of the library. Set this to the empty string

View File

@ -27,6 +27,7 @@
#if $[eq $[USE_COMPILER], GCC]
#define CC gcc
#define CXX g++
#define AR ar
// gcc might run into template limits on some parts of Panda.
// I upped this from 25 to build on OS X (GCC 3.3) -- skyler.
@ -34,6 +35,7 @@
#else
#define CC cc
#define CXX CC
#define AR ar
#endif
// Linux doesn't (yet) have any funny architecture flags.
@ -102,8 +104,8 @@
// How to generate a static C or C++ library. $[target] is the
// name of the library to generate, and $[sources] is the list of .o
// files that will go into the library.
#defer STATIC_LIB_C ar cru $[target] $[sources]
#defer STATIC_LIB_C++ ar cru $[target] $[sources]
#defer STATIC_LIB_C $[AR] cru $[target] $[sources]
#defer STATIC_LIB_C++ $[AR] cru $[target] $[sources]
// How to run ranlib, if necessary, after generating a static library.
// $[target] is the name of the library. Set this to the empty string