* use app_type instead of RelocSection for creating bundles, as

RelocSection is automatically set for all shared libraries

git-svn-id: trunk@8219 -
This commit is contained in:
Jonas Maebe 2007-08-04 09:13:34 +00:00
parent b07b8b557b
commit 4cdd590091
3 changed files with 10 additions and 4 deletions

View File

@ -214,7 +214,8 @@ interface
app_fs, { full-screen type application (OS/2 and EMX only) }
app_tool, { tool application, (MPW tool for MacOS, MacOS only)}
app_arm7,
app_arm9
app_arm9,
app_bundle { dynamically loadable bundle, Darwin only }
);
{ interface types }

View File

@ -1259,7 +1259,12 @@ begin
'b':
begin
if (target_info.system in systems_darwin) then
RelocSection:=not UnsetBool(More, j)
begin
if not UnsetBool(More, j) then
apptype:=app_bundle
else
apptype:=app_cui
end
else
IllegalPara(opt);
end;

View File

@ -234,7 +234,7 @@ begin
else
begin
ExeCmd[1]:='ld $OPT $DYNLINK $STATIC $GCSECTIONS $STRIP -multiply_defined suppress -L. -o $EXE `cat $RES`';
if (not RelocSection) then
if (apptype<>app_bundle) then
DllCmd[1]:='libtool $OPT -dynamic -multiply_defined suppress -L. -o $EXE `cat $RES`'
else
DllCmd[1]:='ld $OPT -dynamic -bundle -multiply_defined suppress -L. -o $EXE `cat $RES`'
@ -357,7 +357,7 @@ begin
end
else
begin
if RelocSection then
if (apptype=app_bundle) then
begin
if librarysearchpath.FindFile('bundle1.o',false,s) then
prtobj:=s