bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PSPAPI is currently unconditionally included if build on MSYS


From: Simon Sobisch
Subject: PSPAPI is currently unconditionally included if build on MSYS
Date: Mon, 11 Nov 2019 13:35:03 +0100

Currently every build on MSYS (no matter if MinGW-GCC, VC or any other compiler is used) unconditionally adds -lpspapi to LIBS.

The following patch adds a note *why* this is done and also a TODO marker as configure should only do so if the library actually can be linked (maybe output a warning if it cannot). _Maybe_ this library isn't necessary at all to build win_driver.c (which I _assume_ this library is linked in) which likely can be verified with AC_CHECK_LIBS.

Ideally the additional library is only added for linking where necessary (some build systems will complain about unneccessary libraries).

As a temporary work-around to be able to complile with the OrangeC compiler on MSYS (only providing the additional used tools, not for providing the compiler/linker) I've removed the additional link from the configure script.

Simon

Attachment: configure.in.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]