Set BUILDMODE=static and -fPIC in Makefile
This commit is contained in:
parent
4cd8b358d7
commit
2b9a03d961
2 changed files with 2 additions and 2 deletions
2
build.rs
2
build.rs
|
@ -27,7 +27,6 @@ fn main() {
|
|||
let mut copy_options = CopyOptions::new();
|
||||
copy_options.overwrite = true;
|
||||
dir::copy(&luajit_dir, &out_dir, ©_options).unwrap();
|
||||
fs::copy(format!("etc/Makefile"), format!("{}/Makefile", &src_dir)).unwrap();
|
||||
|
||||
let mut buildcmd = Command::new(msvcbuild_bat);
|
||||
for (name, value) in cl_exe.env() {
|
||||
|
@ -58,6 +57,7 @@ fn main() {
|
|||
let mut copy_options = CopyOptions::new();
|
||||
copy_options.overwrite = true;
|
||||
dir::copy(&luajit_dir, &out_dir, ©_options).unwrap();
|
||||
fs::copy(format!("etc/Makefile"), format!("{}/Makefile", &src_dir)).unwrap();
|
||||
|
||||
let mut buildcmd = Command::new("make");
|
||||
buildcmd.current_dir(&src_dir);
|
||||
|
|
|
@ -207,7 +207,7 @@ HOST_ACFLAGS= $(CCOPTIONS) $(HOST_XCFLAGS) $(TARGET_ARCH) $(HOST_CFLAGS)
|
|||
HOST_ALDFLAGS= $(LDOPTIONS) $(HOST_XLDFLAGS) $(HOST_LDFLAGS)
|
||||
HOST_ALIBS= $(HOST_XLIBS) $(LIBS) $(HOST_LIBS)
|
||||
|
||||
STATIC_CC = $(CROSS)$(CC)
|
||||
STATIC_CC = $(CROSS)$(CC) -fPIC
|
||||
DYNAMIC_CC = $(CROSS)$(CC) -fPIC
|
||||
TARGET_CC= $(STATIC_CC)
|
||||
TARGET_STCC= $(STATIC_CC)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue