lua-users home
lua-l archive

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


Hello,

When i tried to compile lua 5.3.4 as C++ on my macosx platform i found that the CC variable can't be modified from the command line and the Makefile. The CC variable is still set to the default one which is actualy "cc" on macosx.
Why? because actually the current CC variable is directly set in the compilation command for mac os x:

macosx:
  $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_MACOSX" SYSLIBS="-lreadline" CC="cc"

so i changed this line to:
macosx:
  $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_MACOSX" SYSLIBS="-lreadline" CC="g++"

Or even better just reuse the CC variable set as "g++" in the previous line.

What do you think ? the CC variable should be reused too for the compilation on macosx platform no ?

regards,

--
Sofiane Akermoun
akersof@gmail.com