-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling extension statically into PHP fails #894
Comments
I don't argue that separate builds are beneficial in most cases, I just think statical builds should be possible. I assume splitting the header file should not be to complicated or introduce a maintenance burden.
As far as I know static building is possible for almost all extensions (except Xdebug, for functionality reasons). It simplifies configuration (file pathes, |
@jjeising sure you're more than welcome to try this out. When you're ready, please submit your pull request to the dev branch, not the master branch. |
Closing this issue as we have already merged your pull request, @jjeising |
PHP Driver version or file name 5.3.0
Client operating system macOS 10.14.1
PHP version 7.2.12
Microsoft ODBC Driver version 17.2.0.1
Problem description
Currently it seems not possible to compile the
sqlsrv
andpdo_sqlsrv
extensions statically into PHP. Compilation fails because the extensions main header filesphp_pdo_sqlsrv.h
andphp_sqlsrv.h
are included from C files, while both files currently extensively include C++ specific code.The main header files should be splitted to allow static compilation.
Expected behavior and actual behavior
This should work:
Actual behaviour:
Please note, that this specific error is only a symptom.
Repro code or steps to reproduce
rm configure && ./buildconf --force && ./configure --with-pdo_sqlsrv && make
The text was updated successfully, but these errors were encountered: