config.sh question

12 views
Skip to first unread message

Jimmy Johnson

unread,
May 15, 2025, 12:48:32 PMMay 15
to Eiffel Users
EiffelStudio 22.05 (22.05.10.6292 - macosc-x86-64)

I don't know what all this does, but look at config.sh, lines 161 to 181:
if [ -n "$CC" ]; then
cc=$CC
else
cc='cc'
fi
if [ -n "$CFLAGS" ]; then
ccflags=$CFLAGS
else
ccflags='-pipe -fno-common -fPIC'
fi
ccldflags=''
if [ -n "$CPP" ]; then
cpp=$CPP
else
cpp='c++'
fi
if [ -n "$CPPFLAGS" ]; then
cppflags=$CPPFLAGS
else
cppflags="$ccflags"
fi

Notice the second to last line (it's line 180).  Should that be:
    cppflags="$ccpflags"  not  "=$ccflags"?

jjj

rfo amalasoft.com

unread,
May 15, 2025, 1:08:41 PMMay 15
to eiffel...@googlegroups.com
I don't think so.  Looks like the series of tests is trying to determine if the back-end is C++ and, if not, then to use the C-oriented flags, but (of course) I could be way off.
R

From: eiffel...@googlegroups.com <eiffel...@googlegroups.com> on behalf of Jimmy Johnson <eiffe...@gmail.com>
Sent: Thursday, May 15, 2025 12:48 PM
To: Eiffel Users <eiffel...@googlegroups.com>
Subject: [eiffel-users] config.sh question
 
--
You received this message because you are subscribed to the Google Groups "Eiffel Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eiffel-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/eiffel-users/fdb2e910-5aeb-43af-88d5-616ec350cb90n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages