Skip to content

Commit

Permalink
Some library scanner improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
LongDirtyAnimAlf committed Jul 17, 2024
1 parent 5b2a4b5 commit ee9d6aa
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 4 deletions.
26 changes: 26 additions & 0 deletions fpcuptools/libraryscanner/scannercmd.lpi
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,32 @@
</Linking>
</CompilerOptions>
</Item>
<Item Name="OpenBSDAMD64">
<CompilerOptions>
<Version Value="11"/>
<PathDelim Value="\"/>
<Target>
<Filename Value="bin\$NameOnly($(ProjFile))-$(TargetCPU)-$(TargetOS)"/>
</Target>
<SearchPaths>
<IncludeFiles Value="$(ProjOutDir)"/>
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
</SearchPaths>
<CodeGeneration>
<TargetCPU Value="x86_64"/>
<TargetOS Value="openbsd"/>
<Optimizations>
<OptimizationLevel Value="2"/>
</Optimizations>
</CodeGeneration>
<Linking>
<Debugging>
<GenerateDebugInfo Value="False"/>
<UseLineInfoUnit Value="False"/>
</Debugging>
</Linking>
</CompilerOptions>
</Item>
</BuildModes>
<PublishOptions>
<Version Value="2"/>
Expand Down
11 changes: 7 additions & 4 deletions fpcuptools/libraryscanner/scannercore.pas
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,14 @@ implementation
);
{$endif}

{$if defined(FreeBSD) OR defined(NetBSD) OR defined(OenBSD) OR defined(DragonFly)}
BSDSEARCHDIRS : array [0..9] of string = (
{$if defined(FreeBSD) OR defined(NetBSD) OR defined(OpenBSD) OR defined(DragonFly)}
BSDSEARCHDIRS : array [0..11] of string = (
'/lib',
'/libexec',
'/usr/lib',
'/usr/libexec',
'/usr/pkg/lib',
'/usr/X11R6/lib',
'/usr/X11R7/lib',
'/usr/local/lib',
'/usr/local/lib/qt5',
Expand All @@ -137,7 +139,7 @@ implementation
DYNLINKV2='ld-*.so.2';
DYNLINKV3='ld-*.so.3';
{$else}
{$if defined(FreeBSD) OR defined(NetBSD) OR defined(OenBSD) OR defined(DragonFly)}
{$if defined(FreeBSD) OR defined(NetBSD) OR defined(OpenBSD) OR defined(DragonFly)}
DYNLINKV1='ld-elf.so.1';
DYNLINKV2='ld-elf.so.2';
DYNLINKV3='ld-elf.so.3';
Expand Down Expand Up @@ -409,11 +411,12 @@ function GetSourceCPUOS:string;
function GetStartupObjects:string;
const
LINKFILE='crtbegin.o';
SEARCHDIRS : array [0..5] of string = (
SEARCHDIRS : array [0..6] of string = (
'/usr/local/lib/',
'/usr/lib/',
'/usr/local/lib/gcc/',
'/usr/lib/gcc/',
'/usr/lib/gcc-lib/',
'/lib/gcc/',
'/lib/'
);
Expand Down
24 changes: 24 additions & 0 deletions installscripts/openbsd_xfce.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
sudo pkg_add at-spi2-core

sudo pkg_add install xfce
sudo pkg_add install xfce-extras
sudo pkg_add install xfce-desktop

sudo sed -i 's/xconsole/#xconsole/' /etc/X11/xenodm/Xsetup_0

sudo pkg_add xfce4-power-manager

sudo pkg_add install xdg-user-dirs
xdg-user-dirs-update

rcctl enable messagebus
rcctl start messagebus
rcctl enable apmd
rcctl start apmd

# this must be done for the local user
touch .xsession
# echo 'exec ck-launch-session xfce4-session' > .xsession
echo 'exec xfce4-session' > .xsession
ln -s .xsession .xinitrc
xdg-user-dirs-update

0 comments on commit ee9d6aa

Please sign in to comment.