=================== BUG #4492: FULL BUG SNAPSHOT ===================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4492&group_id=99
Submitted by: minusbat Project: GNUstep
Submitted on: Sat 07/26/2003 at 16:03
Category: Makefiles Severity: 5 - Major
Bug Group: None Resolution: None
Assigned to: None Status: Open
Summary: cpp under OSX breacks .cplists by inserting #pragma at the start
Original Submission: Processing of .cplist into .plist files on OSX is done using a
line thus:
gcc -E -P -x c -traditional -DAPPLE xxx.cplist -o xxx.plist
The lateest version of cpp on OSX (gnu 3.3 based) inserts a #pragma
at the start of the resulting file. This looks liek:
#pragma GCC set_debug_pwd "/Users/pete/testapp"
The breaks the assumption made in the makefiles that the .plist file
will start with a single line '{' - which is then deleted using the 'sed 1d'
command. Thus the resulting .plist file in the application is invalid.
I cannt find an option to disable the insertion of the #pragma (nor any
reference as to why it is being inserted), so disabling the generation is
not that straightforward. It is, however, an easy matter to add a second
line of sed which will delete all #pragma lines from the output, and this
works as a solution. This can be accomplished by changing the cplist
rule in rules.make to:
%.plist : %.cplist
$(ECHO_PREPROCESSING)$(CPP)
$(filter-out $($<_FILE_FILTER_OUT_FLAGS),$(ALL_CPLISTFLAGS))
$($<_FILE_FLAGS) $< | sed '/^#pragma/d' > [EMAIL PROTECTED](END_ECHO)
No Followups Have Been Posted
CC list is empty
No files currently attached
For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4492&group_id=99
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep