From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from nm30-vm0.bullet.mail.bf1.yahoo.com (nm30-vm0.bullet.mail.bf1.yahoo.com [98.139.213.126]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id a7812ca7 for ; Sat, 7 Nov 2015 00:03:29 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s2048; t=1446872607; bh=ioOixBLt5xPr+VX9e76gOJO53LC2i9ijwH6CTW9gPvE=; h=Date:From:To:Subject:From:Subject; b=T2Wc6J8EGjH9EdrvF4OFZU+B7OtLJ+HOD6lrsYbMWpjFh9frKAkC0uzb1ozFM6lW8BpYGYv+p6AmoQ3RaK2ZYw+i7NhDItZe3Y225bt+/MedjEWwWO39D8EZdbCKYxZNTjk00EGru8uCkyeImgH4evprSeSu/lXRJ9YmWmSvGm+nHeXpxuhRuewDX+YlignLK4bLaZY91mfPX9IB3YU2AB1Q2ombDebdNOBY2YYag2JZOeEXPu4TX0jzNGAFyZXz2yJWcBXIYGpQSwDP2TQwzDdJ0W6s4nLcZEzcalwTBM0s/CpmOILOjib32tw3iiILZ0Uyd2aLsIqwThfeVyyLLA== Received: from [66.196.81.170] by nm30.bullet.mail.bf1.yahoo.com with NNFMP; 07 Nov 2015 05:03:27 -0000 Received: from [68.142.230.70] by tm16.bullet.mail.bf1.yahoo.com with NNFMP; 07 Nov 2015 05:03:27 -0000 Received: from [127.0.0.1] by smtp227.mail.bf1.yahoo.com with NNFMP; 07 Nov 2015 05:03:27 -0000 X-Yahoo-Newman-Id: 182065.9738.bm@smtp227.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: JK__l_4VM1mZ4ksFt0NYMdZzlf5FP3ah_H9tQUq7.eYseQl xnIjENu.Kr00JTvuen0QnBwqoPN3K9tNEB6axiMffOj2uTgPj9iibfKvQOFW Q0nuU2Vkq2_xeJTjPeDfG.M7BEJe0Sw.tCpfyvwW.7OyZ.uReutb0JDZZUEv M1mrQAE3Ycns.9pT1FbHgu3gNUYQdxzS8LMV3Jj0n2dMs_G3mTq.WkMwFZDM KGRP3zsrihC6p9kV09SYfOFb_KPYKpRORWaHfoVASxuz3svOnLLDA7Pugu2l e7iqeeLxNXXBY1XVt9KBMpZb1NL40G38ZS3U_VTGCv4sHfX2rceowjdD3u7k RVHNdUKMtjh_o5YHfEwHo7N5CWTcgnCAJUPcS7Qu4v7UG58JyXXNeEPjrM_C 9oQ8Z8U8e6JsfJuJDKMJyeHH8aOWHCYLlLIAO90kFIHS2np.gXOhfhPS7t6Q 4MMqnRngHDe9kf94LHs34Y4fIsOuWMTTmokoTyQA8YDZBTfOTe9Op6tMwExx 7xP0DvNkOnr1imLVrGpL4KidYuoYAD2M- X-Yahoo-SMTP: wy_7AdSswBBaijFlmVnVzTL.0g-- Message-ID: <563D861C.2010902@yahoo.com.au> Date: Sat, 07 Nov 2015 16:03:24 +1100 From: Peter Bray User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 To: discuss@mdocml.bsd.lv Subject: mdocml [CVS_2015_11_07] Use of CPPFLAGS and LDFLAGS Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Greetings, When configuring mdocml from CVS (2015-11-07 11:47AEST), I noticed that 'configure' did not find sqlite, which on my system is not in /usr/local or /usr. Investigations showed that neither CPPFLAGS or LDFLAGS are used by the 'configure' script. Adding to 'configure.local' the following: CC="${CC}" CFLAGS="${CPPFLAGS} ${CFLAGS} ${LDFLAGS}" # No support for CPPFLAGS / LDFLAGS Fixed the issue, and sqlite was found. Investigating further, I found the 'Makefile' does use LDFLAGS, but 'configure' does not. And the project does not use CPPFLAGS at all. My understanding (likely derived from GNU make(1), which I use extensively), is that CPPFLAGS, LDFLAGS and LIBS are the standard make(1) / environment variables to control the search paths and additional required libraries. As in, CPPFLAGS: For -I, -D[=] and -U LDFLAGS: For -L and -R LIBS: For -l (eg -lrt for nanosleep() on Solaris 10) Question: Should 'configure' and 'Makefile' be using CPPFLAGS and LDFLAGS by default? So that the person building the mdocml project does not need to provide additional configuration for the build process. Regards, Peter Bray Sydney, Australia PS: Happy to be pointed to references as to why these variables are not used by some UNIX-like Operating Systems, if that is the case. PPS: My own FLOSS build system has for 64-bit: % env | egrep 'FLAGS|LIBS' LDFLAGS=-L/pkgs/64-bit/lib/amd64 -L/pkgs/64-bit/lib CPPFLAGS=-I/pkgs/64-bit/include -I/pkgs/include and for 32-bit: % env | egrep 'FLAGS|LIBS' LDFLAGS=-L/pkgs/32-bit/lib CPPFLAGS=-I/pkgs/32-bit/include -I/pkgs/include -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv