[Buildroot] [patch] qtopia4
rep.nop at aon.at
Mon Dec 11 22:27:08 UTC 2006
On Mon, Dec 11, 2006 at 10:56:48PM +0100, Thomas Lundquist wrote:
>On Mon, Dec 11, 2006 at 02:43:47PM +0100, Bernhard Fischer wrote:
>> >+ $(SED) 's/-O2/-Os/;' $(QTOPIA4_TARGET_DIR)/mkspecs/qws/linux-$(BR2_PACKAGE_QTOPIA4_EMB_PLATFORM)-g++/qmake.conf
>> shouldn't this rather be
>> s/-O2/-Os $(TARGET_CFLAGS)/
>then it could be
>since -Os should be included.
>Something tells me that I shouldn't do that here. Don't ask me why, I
>spent quite alot of time getting qtopia to compile at all.
Trouble is that some arches may need some fancy flags to generate proper
code, users may want to globally set some additional flags that should
be used for all packages that are built. Please verify if passing the
correct TARGET_CFLAGS down to qtopia works as expected thus area lso
used in qtopia.
>> Also, all trailing command separators (i.e. ';') in sed are superfluous.
>It's a habit. Any real reason we should make it a requirement not to
>have it or is it just for looks?
Well, it's bloat :) Habit of mine to omit them if they are not needed.
>> >+ cp $(QTOPIA4_QCONFIG_FILE) \
>> >+ $(QTOPIA4_TARGET_DIR)/$(QTOPIA4_QCONFIG_FILE_LOCATION)
>> >+ (cd $(QTOPIA4_TARGET_DIR); rm -rf config.cache; \
>> >+ PATH=$(TARGET_PATH) \
>> >+ CFLAGS="$(TARGET_CFLAGS)" \
>> >+ CXXFLAGS="$(TARGET_CXXFLAGS)" \
>> Sounds like this is will break for anybody that doesn't have a plain
>> "gcc" nor "g++" binary. Honor the user's HOSTCC and HOSTCXX vars,
Of course ment CC and CXX and not the host compilers, sorry.
>If Troll/qtopia would, I would.
>(No, they don't seem to honour CC nor CXX)
Can't be.. Otherwise you'd build qtopia for the host and not for the
target. Please double check (could be that configure stores them for
>I'll send you a new patch with or without ;.
>(and if you really don't want them I guess I have to remove them from
>other packages I've planned to submit.)
Please do. It just wastes space and memory.
More information about the buildroot