mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-06-14 09:26:52 +00:00
mymake:: an option -shared to create a less intrusive shared object library
This commit is contained in:
parent
92745fe1bb
commit
cf0d9ac501
|
@ -240,6 +240,13 @@ int main(int argc, char **argv) {
|
||||||
exec_name = argv[i+1];
|
exec_name = argv[i+1];
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
else if(s == "-shared") {
|
||||||
|
obj_dir += "/shared";
|
||||||
|
setdir += "../";
|
||||||
|
opts += " -fPIC -DNOMAIN";
|
||||||
|
linker += " -shared -fPIC";
|
||||||
|
default_exec_name = "libhyper.so";
|
||||||
|
}
|
||||||
else if(s == "-O2")
|
else if(s == "-O2")
|
||||||
optimized = 2, compiler += " -O2", obj_dir += "/O2", setdir += "../";
|
optimized = 2, compiler += " -O2", obj_dir += "/O2", setdir += "../";
|
||||||
else if(s == "-O3")
|
else if(s == "-O3")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user