Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68590 - Twin sorts CFLAGS -- which is wrong.
Summary: Twin sorts CFLAGS -- which is wrong.
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-22 13:41 UTC by Nicholas Jones (RETIRED)
Modified: 2004-11-15 21:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicholas Jones (RETIRED) gentoo-dev 2004-10-22 13:41:10 UTC
It breaks multi-part flags. 

CFLAGS="-march=pentium4 -O2 -fprefetch-loop-arrays --param max-unrolled-insns=2000"

gcc --param -D_GNU_SOURCE -D_REENTRANT -I../../include -O2 -Wall -Winline -Wno-uninitialized -Wshadow -fprefetch-loop-arrays -march=pentium4 -pipe max-unrolled-insns=2000 -c libTutf.c -o libTutf.o
gcc: cannot specify -o with -c or -S and multiple compilations


%.o: %.c
  $(call echo-and-compile,$(CC_BIN) $(sort $(CC_FLAGS) $(CC_FLAGS_$@)) -c $< -o,$@)
  @$(ECHO_E) ' ifeq ($$(CC_BIN) $$(sort $$(CC_FLAGS) $$(CC_FLAGS_$@)),$(CC_BIN) $(sort $(CC_FLAGS) $(CC_FLAGS_$@)))\n'\
  '  FILES_UP_TO_DATE += $@\n'\
  'endif' > .$@.flags && \
   $(echo-done)
Comment 1 SpanKY gentoo-dev 2004-11-15 21:55:12 UTC
e-mailed upstream but they seem kind of dead

the makerules file is kind of ugly so i'm not gonna look into it more :p