kakyo
kakyo

Reputation: 11640

Autotools: how to override the intermediate build product directory?

I noticed that many Autotools-based projects generate binaries into /path/to/project/lib/.lib folder.

This has a side effect for a cross-platform project where the first built project will contaminate the subsequent builds for other platforms.

I know that I could use --prefix and --exec-prefix for configure to specify install/deployment directories, but these have no influence on the .lib location.

Is there another switch to specify the immediate build product location so that I can isolate platform-dependent binaries?

Upvotes: 0

Views: 72

Answers (1)

Botje
Botje

Reputation: 31080

Create separate build trees for each platform and invoke the configure script from each build tree separately. This will ensure all build artifacts are separated by platform.

Upvotes: 4

Related Questions