Skip to content

Commit

Permalink
Cleanup FB paths
Browse files Browse the repository at this point in the history
  • Loading branch information
mlazdans committed Mar 2, 2025
1 parent 443e47d commit 5ff8098
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
ARG_WITH("interbase", "InterBase support", "no");

if (PHP_INTERBASE != "no") {

if (CHECK_HEADER_ADD_INCLUDE("ibase.h", "CFLAGS_INTERBASE",
PHP_PHP_BUILD + "\\include\\interbase;" + PHP_PHP_BUILD + "\\interbase\\include;" + PHP_INTERBASE) &&
(CHECK_LIB("fbclient_ms.lib", "interbase", PHP_PHP_BUILD + "\\interbase\\lib_ms;" + PHP_INTERBASE) ||
CHECK_LIB("gds32_ms.lib", "interbase", PHP_PHP_BUILD + "\\interbase\\lib_ms;" + PHP_INTERBASE))) {

if (
CHECK_HEADER_ADD_INCLUDE("ibase.h", "CFLAGS_INTERBASE", PHP_INTERBASE + "\\include") && (
CHECK_LIB("fbclient_ms.lib", "interbase", PHP_INTERBASE + "\\lib") ||
CHECK_LIB("gds32_ms.lib", "interbase", PHP_INTERBASE + "\\lib")
)
) {
EXTENSION("interbase", "interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c pdo_firebird_utils.cpp", PHP_INTERBASE_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
AC_DEFINE('HAVE_IBASE', 1, 'Have interbase library');
} else {
Expand Down
4 changes: 2 additions & 2 deletions win_build_scripts/php-fb-sdk-build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ exit /B
)

if "%pfb_x86%" gtr "0" (
set with_interbase="shared,%PFB_FB32_DIR%lib;%PFB_FB32_DIR%include"
set with_interbase="shared,%PFB_FB32_DIR%"
set build_msg=%build_msg% x86
) else (
set with_interbase="shared,%PFB_FB64_DIR%lib;%PFB_FB64_DIR%include"
set with_interbase="shared,%PFB_FB64_DIR%"
set build_msg=%build_msg% x86_64
)

Expand Down

0 comments on commit 5ff8098

Please sign in to comment.