Skip to content

Commit

Permalink
Added --disable-all switch
Browse files Browse the repository at this point in the history
Added --disable-all switch to windows build command
  • Loading branch information
Martin Köditz authored May 18, 2021
1 parent 41ba820 commit 45ae357
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,27 +96,29 @@ If everything is ok, we can now compile our PHP extension. Please specify the th
Usually you will build thread safe extensions.
For Win32 thread safe (TS) do:
```
buildconf && configure --enable-cli --with-interbase="shared,C:\Program Files (x86)\Firebird\3_0" && nmake
buildconf --force && configure --disable-all --enable-cli --with-interbase="shared,C:\Program Files (x86)\Firebird\3_0" && nmake
```
For Win64thread safe (TS) do:
```
buildconf && configure --enable-cli --with-interbase="shared,C:\Program Files\Firebird\3_0" && nmake
buildconf --force && configure --disable-all --enable-cli --with-interbase="shared,C:\Program Files\Firebird\3_0\lib" && nmake
```
After the compilation you can find your extension called `php_interbase.dll` e.g. in `C:\php-sdk\phpmaster\vc15\x64\php-src\x64\Release_TS\php_interbase.dll`
Replace x64 with x86 for Win32.

#### Build NTS extension
For Win32 non-thread safe (NTS) run:
```
buildconf && configure --disable-zts --enable-cli --with-interbase="shared,C:\Program Files (x86)\Firebird\3_0" && nmake
buildconf --force && configure --disable-zts --disable-all --enable-cli --with-interbase="shared,C:\Program Files (x86)\Firebird\3_0" && nmake
```
For Win64 non-thread safe (NTS) run:
```
buildconf && configure --disable-zts --enable-cli --with-interbase="shared,C:\Program Files\Firebird\3_0" && nmake
buildconf --force && configure --disable-zts --disable-all --enable-cli --with-interbase="shared,C:\Program Files\Firebird\3_0\lib" && nmake
```
After the compilation you can find your extension called `php_interbase.dll` e.g. in `C:\php-sdk\phpmaster\vc15\x86\php-src\Release`
Replace x86 with x64 for Win64.

#### Clean up your working directory
After you've created the binary data, many temporary files will be created in your working directory. These can be removed with the command `nmake clean`. Then you have a tidy directory again.



Expand Down

0 comments on commit 45ae357

Please sign in to comment.