![]() |
|
Message-ID: <5a1b669c-3aa0-fce8-298a-2f92bda2ef00@mirbsd.de> Date: Wed, 5 Mar 2025 11:54:01 +0100 (CET) From: Thorsten Glaser <tg@...bsd.de> To: musl@...ts.openwall.com Subject: Re: configure: LIBCC auto detection not using {C,LD}FLAGS On Tue, 4 Mar 2025, Rich Felker wrote: >For example if configure needs to probe something about the selected >CC, but it's not actually compiling or linking anything, should it use >CFLAGS? LDFLAGS? Both? Neither? At least CFLAGS and very likely CPPFLAGS. There are also things like -m32 or -Dconst= (for ACK) or -Xa (SINIX) or -YPOSIX that can change things, and probing something about CC is effectively always at least compiling a test program except for very few very brittle things (in my vast porting experience, I gave up trying to do so without passing a test program that just returns 0). bye, //mirabilos -- 11:56⎜«liwakura:#!/bin/mksh» also, i wanted to add mksh to my own distro │ i was disappointed that there is no makefile │ but somehow the Build.sh is the least painful built system i've ever seen │ honours CC, {CPP,C,LD}FLAGS properly │ looks cleary like done by someone who knows what they are doing
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.