Permalink
Browse files

Build using fpc targerting linux64 (ubuntu 16.04) fixed

Build script added
  • Loading branch information...
ssoftpro committed Oct 17, 2017
1 parent 9c85dca commit 27057d0d3ccd91c7c03a628e26bdcba4ae7f4861
Showing with 13 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +3 −0 SQLite3/TestSQL3FPCInterfaces.pas
  3. +2 −2 SynCrypto.pas
  4. +7 −0 build-fpc-linux64.sh
@@ -55,6 +55,7 @@
*.or
*.lps
*.db
fpc/
# Delphi autogenerated files (duplicated info)
*.cfg
@@ -72,6 +72,9 @@ interface
implementation
uses
SynTable;
{$ifndef HASINTERFACERTTI} // circumvent old FPC bug of missing RTTI
{ TInterfaceFactoryDefinition }
@@ -7102,7 +7102,7 @@ procedure sha512_compress(state: PQWord; block: PByteArray); cdecl; external;
{$L sha512-x64sse4.obj}
{$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}
@@ -12845,7 +12845,7 @@ function ToCaption(res: TJWTResult): string;
{$endif}
// 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;
{$ifdef MSWINDOWS} {$ifdef FPC}nostackframe; assembler;{$endif}
@@ -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.