Enable binreloc for OS X.
This commit is contained in:
parent
654dcd8ff0
commit
f41b3a2b06
@ -70,7 +70,7 @@ binary.sources += [
|
||||
'zlib/zutil.c',
|
||||
'sp_symhash.c'
|
||||
]
|
||||
if builder.target_platform == 'linux':
|
||||
if builder.target_platform != 'windows':
|
||||
binary.sources.append('binreloc.c')
|
||||
|
||||
SM.spcomp = builder.Add(binary)
|
||||
|
@ -1196,9 +1196,6 @@ static void setopt(int argc,char **argv,char *oname,char *ename,char *pname,
|
||||
#endif
|
||||
static void setconfig(char *root)
|
||||
{
|
||||
#if defined macintosh
|
||||
insert_path(":include:");
|
||||
#else
|
||||
char path[_MAX_PATH];
|
||||
char *ptr,*base;
|
||||
int len;
|
||||
@ -1206,7 +1203,7 @@ static void setconfig(char *root)
|
||||
/* add the default "include" directory */
|
||||
#if defined __WIN32__ || defined _WIN32
|
||||
GetModuleFileNameA(NULL,path,_MAX_PATH);
|
||||
#elif defined LINUX || defined __FreeBSD__ || defined __OpenBSD__
|
||||
#elif defined LINUX || defined __FreeBSD__ || defined __OpenBSD__ || defined DARWIN
|
||||
/* see www.autopackage.org for the BinReloc module */
|
||||
br_init_lib(NULL);
|
||||
ptr=br_find_exe("spcomp");
|
||||
@ -1215,7 +1212,6 @@ static void setconfig(char *root)
|
||||
#else
|
||||
if (root!=NULL)
|
||||
strlcpy(path,root,sizeof path); /* path + filename (hopefully) */
|
||||
#endif
|
||||
# if defined __MSDOS__
|
||||
/* strip the options (appended to the path + filename) */
|
||||
if ((ptr=strpbrk(path," \t/"))!=NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user