Skip to content

Commit

Permalink
Build using fpc targerting linux64 (ubuntu 16.04) fixed
Browse files Browse the repository at this point in the history
Build script added
  • Loading branch information
ssoftpro committed Oct 17, 2017
1 parent 9c85dca commit 27057d0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -55,6 +55,7 @@
*.or *.or
*.lps *.lps
*.db *.db
fpc/


# Delphi autogenerated files (duplicated info) # Delphi autogenerated files (duplicated info)
*.cfg *.cfg
Expand Down
3 changes: 3 additions & 0 deletions SQLite3/TestSQL3FPCInterfaces.pas
Expand Up @@ -72,6 +72,9 @@ interface


implementation implementation


uses
SynTable;

{$ifndef HASINTERFACERTTI} // circumvent old FPC bug of missing RTTI {$ifndef HASINTERFACERTTI} // circumvent old FPC bug of missing RTTI


{ TInterfaceFactoryDefinition } { TInterfaceFactoryDefinition }
Expand Down
4 changes: 2 additions & 2 deletions SynCrypto.pas
Expand Up @@ -7102,7 +7102,7 @@ procedure sha512_compress(state: PQWord; block: PByteArray); cdecl; external;
{$L sha512-x64sse4.obj} {$L sha512-x64sse4.obj}
{$endif} {$endif}


procedure sha512_sse4(data, hash: pointer; blocks: Int64); external; procedure sha512_sse4(data, hash: pointer; blocks: Int64); {$ifdef FPC}{$ifndef MSWINDOWS}cdecl;{$endif}{$endif} external;
{$endif SHA512_X64} {$endif SHA512_X64}




Expand Down Expand Up @@ -12845,7 +12845,7 @@ function ToCaption(res: TJWTResult): string;
{$endif} {$endif}
// defined in SynCrypto.pas, not in SynCommons.pas, to avoid .o/.obj dependencies // defined in SynCrypto.pas, not in SynCommons.pas, to avoid .o/.obj dependencies


function crc32_iscsi_01(buf: PAnsiChar; len: PtrUInt; crc: cardinal): cardinal; external; function crc32_iscsi_01(buf: PAnsiChar; len: PtrUInt; crc: cardinal): cardinal; {$ifdef FPC}{$ifndef MSWINDOWS}cdecl;{$endif}{$endif} external;


function crc32c_sse42_aesni(crc: cardinal; buf: PAnsiChar; len: cardinal): cardinal; function crc32c_sse42_aesni(crc: cardinal; buf: PAnsiChar; len: cardinal): cardinal;
{$ifdef MSWINDOWS} {$ifdef FPC}nostackframe; assembler;{$endif} {$ifdef MSWINDOWS} {$ifdef FPC}nostackframe; assembler;{$endif}
Expand Down
7 changes: 7 additions & 0 deletions build-fpc-linux64.sh
@@ -0,0 +1,7 @@
#!/bin/bash

rm -rf ./fpc/*
mkdir -p ./fpc/lib/x86_64-linux
mkdir -p ./fpc/bin/x86_64-linux

fpc -B -MObjFPC -Scagi -Cg -Cirot -gw2 -gl -l -dFPCSQLITE3STATIC -dUseCThreads -Fi -Fifpc/lib/x86_64-linux -Fl./fpc-linux64 -Fu./SQLite3 -Fu./SQLite3/DDD/dom -Fu./SQLite3/DDD/infra "-Fu./SQLite3/Samples/33 - ECC" -Fu. -FUfpc/lib/x86_64-linux -FEfpc/bin/x86_64-linux/ ./SQLite3/TestSQL3.dpr

0 comments on commit 27057d0

Please sign in to comment.