On 24/02/2023 14:45, Michael Olbrich wrote:
On Fri, Feb 24, 2023 at 12:03:14PM +0000, Ian Abbott wrote:
Hi Michael,

Sorry to be a pain.  I'm attempting to inject extra CFLAGS through the
toolchain wrappers, but I'm not sure how to do it.  Here is one of my
attempts that does not work:

#
----------------------------------------------------------------------------
# Prepare
#
----------------------------------------------------------------------------

LIBTAHU_CONF_TOOL       := NO

#
----------------------------------------------------------------------------
# Compile
#
----------------------------------------------------------------------------

# -D_TIME_BITS=64 requires -D_FILE_OFFSET_BITS=64
LIBTAHU_CPPFLAGS := -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64
LIBTAHU_CFLAGS := -O2
LIBTAHU_MAKE_ENV := $(CROSS_ENV)
# Just build the dynamic library.
LIBTAHU_MAKE_OPT := \
        $(CROSS_ENV_PROGS) \
        lib/libtahu.so

$(STATEDIR)/libtahu.compile:
        @$(call targetinfo)
        @$(call world/compile, LIBTAHU)
        @$(call touch)

I'm obviously missing something to pass the properly wrapped CC and CPP
variables (incorporating the extra flags) to 'make'.  Could you provide a
clue how to fix it?

Are you sure it does not work? It will not be visible in the regular make
output. Run PTXdist with '-v' and then check platform-XXX/logfile.

You should find a 'wrapper: ...' line for each compiler run and the extra
flags should be visible here.

Oops, so they are!  I never noticed.  I understand what is going on now!

--
-=( Ian Abbott <[email protected]> || MEV Ltd. is a company  )=-
-=( registered in England & Wales.  Regd. number: 02862268.  )=-
-=( Regd. addr.: S11 & 12 Building 67, Europa Business Park, )=-
-=( Bird Hall Lane, STOCKPORT, SK3 0XA, UK. || www.mev.co.uk )=-


Reply via email to