2011-07-27

Slitaz - qt480β / g++ / wayland


g++: unrecognized option '-0s'

20110730

http://hg.slitaz.org/tazwok/rev/b1584d8f70a7

tazwok changeset 535:b1584d8f70a7

tazwok.conf: Fixed typo.
author Christopher Rogers
date Tue May 24 21:08:47 2011 +0000 (2 months ago ago)
parents 753ea2c0fe0f
children 89e392194b30
files examples/tazwok.conf
line diff
     1.1 --- a/examples/tazwok.conf Mon May 23 20:47:03 2011 +0000
     1.2 +++ b/examples/tazwok.conf Tue May 24 21:08:47 2011 +0000
     1.3 @@ -46,7 +46,7 @@ 
     1.4  # with same hardware and newest of the same family :
     1.5  #CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
     1.6  #CFLAGS="-mtune=$ARCH -O2 -pipe -fomit-frame-pointer"
     1.7 -CFLAGS="-march=$ARCH -0s -pipe -fomit-frame-pointer"
     1.8 +CFLAGS="-march=$ARCH -Os -pipe -fomit-frame-pointer"
     1.9  CXXFLAGS="$CFLAGS"
    1.10  
    1.11  # Default tool prefix.
 
 
1.
root@slitaz:/home/slitaz/cooking/wok/qt4/qt4-4.8.0-beta1/config.tests/qpa/wayland# make
g++ -c -march=i486 -0s -pipe -fomit-frame-pointer -O2 -Wall -W  -I/usr/share/qt/mkspecs/linux-g++ -I. -o wayland.o wayland.cpp
g++: unrecognized option '-0s'
g++ -Wl,-O1 -Wl,-rpath,/usr/lib -o wayland wayland.o    

2.
root@slitaz:/home/slitaz/cooking/wok/qt4/qt4-4.8.0-beta1/config.tests/qpa/wayland# cat Makefile | head -40
#############################################################################
# Makefile for building: wayland
# Generated by qmake (2.01a) (Qt 4.8.0) on: ?? 7? 28 09:55:03 2011
# Project:  wayland.pro
# Template: app
# Command: /home/slitaz/cooking/wok/qt4/qt4-4.8.0-beta1/bin/qmake -o Makefile wayland.pro
#############################################################################

####### Compiler, tools and options

CC            = gcc
CXX           = g++
DEFINES       =
CFLAGS        = -march=i486 -0s -pipe -fomit-frame-pointer -O2 -Wall -W $(DEFINES)
CXXFLAGS      = -march=i486 -0s -pipe -fomit-frame-pointer -O2 -Wall -W $(DEFINES)
INCPATH       = -I/usr/share/qt/mkspecs/linux-g++ -I.
LINK          = g++
LFLAGS        = -Wl,-O1 -Wl,-rpath,/usr/lib
LIBS          = $(SUBLIBS)  
AR            = ar cqs
RANLIB        =
QMAKE         = /home/slitaz/cooking/wok/qt4/qt4-4.8.0-beta1/bin/qmake
TAR           = tar -cf
COMPRESS      = gzip -9f
COPY          = cp -f
SED           = sed
COPY_FILE     = $(COPY)
COPY_DIR      = $(COPY) -r
STRIP         = strip
INSTALL_FILE  = install -m 644 -p
INSTALL_DIR   = $(COPY_DIR)
INSTALL_PROGRAM = install -m 755 -p
DEL_FILE      = rm -f
SYMLINK       = ln -f -s
DEL_DIR       = rmdir
MOVE          = mv -f
CHK_DIR_EXISTS= test -d
MKDIR         = mkdir -p

####### Output directory


3.
root@slitaz:/home/slitaz/cooking/wok/qt4/qt4-4.8.0-beta1/config.tests/qpa/wayland# g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i486-pc-linux-gnu/4.5.2/lto-wrapper
Target: i486-pc-linux-gnu
Configured with: /home/slitaz/cooking/wok/gcc/gcc-4.5.2/configure --enable-nls --enable-languages=c,c++,objc,fortran --enable-shared --with-system-zlib --enable-clocale=gnu --enable-objc-gc --enable-__cxa_atexit --enable-lto --disable-bootstrap libexecdir=/usr/lib --enable-threads=posix --with-tune=i486 i486-pc-linux-gnu
Thread model: posix
gcc version 4.5.2 (GCC)

4.
root@slitaz:~# head -50 /etc/slitaz/tazwok.conf | tail
# Cook compatible packages partially optimized for your own hardware :
#CFLAGS="-mtune=$ARCH -O2 -pipe -fomit-frame-pointer"
# Where ARCH=your arch
#
# Cook packages fully optimized for your hardware - Warning, compatible only
# with same hardware and newest of the same family :
#CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
#CFLAGS="-mtune=$ARCH -O2 -pipe -fomit-frame-pointer"
CFLAGS="-march=$ARCH -0s -pipe -fomit-frame-pointer"
CXXFLAGS="$CFLAGS"
root@slitaz:~#
.