Set BUILDMODE=static and -fPIC in Makefile

This commit is contained in:
Aaron Loucks 2019-08-15 21:32:21 -04:00
parent 4cd8b358d7
commit 2b9a03d961
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,6 @@ fn main() {
let mut copy_options = CopyOptions::new();
copy_options.overwrite = true;
dir::copy(&luajit_dir, &out_dir, &copy_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, &copy_options).unwrap();
fs::copy(format!("etc/Makefile"), format!("{}/Makefile", &src_dir)).unwrap();
let mut buildcmd = Command::new("make");
buildcmd.current_dir(&src_dir);

View file

@ -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)