Skip to content

Commit

Permalink
fixed SQlite3 static compilation on x86_64-linux
Browse files Browse the repository at this point in the history
- we should not use the same sqlite3.o as with mORMot 2
  • Loading branch information
Arnaud Bouchez committed Mar 13, 2024
1 parent 4404525 commit 6329088
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions SQLite3/amalgamation/compile-fpc-x86_64-linux.bat
Expand Up @@ -21,13 +21,16 @@ echo Compiling for FPC on %FPCARCH% using %GCC%

%FPCARCH%-strip -x sqlite3-%FPCARCH%.o

echo Renaming dl and pthread symbols for proper cross-GLIBC execution
echo Direct use for mORMot 1
copy sqlite3-%FPCARCH%.o %DST%

echo.
echo Renaming dl and pthread symbols for proper cross-GLIBC mORMot 2 execution
copy sqlite3-%FPCARCH%.o sqlite3-%FPCARCH%.orig
rem objconv.exe should be downloaded from https://agner.org/optimize/objconv.zip
objconv -np:pthread:_pthread -np:dl:_dl sqlite3-%FPCARCH%.orig sqlite3-%FPCARCH%.o
del sqlite3-%FPCARCH%.orig

copy sqlite3-%FPCARCH%.o %DST%
copy sqlite3-%FPCARCH%.o %DST2%

rem pause
rem pause
2 changes: 1 addition & 1 deletion SynopseCommit.inc
@@ -1 +1 @@
'1.18.6450'
'1.18.6452'

0 comments on commit 6329088

Please sign in to comment.