N
N
Ninazu2019-09-29 19:53:04
linux
Ninazu, 2019-09-29 19:53:04

How to build PHP extension for Windows x64 from Linux?

I tried to configure it like this .
./configure --host=x86_64-w64-mingw32
But after make , I get a .a file and not a .dll at the output . What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Romi, 2019-09-29
@romicohen

The previous speaker speaks the matter)) It's probably easier to use a cross-compiler, because setting up the build environment in Windows is such a pleasure)))

Y
yanod, 2019-09-30
@yanod

Use docker and you will never think about such things.

Z
zanac, 2019-10-03
@zanac

Replace --host= with target
if it doesn't help, configure --help show

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question