1. Rodrigo Bistolfi
  2. vabs

Commits

Rodrigo Bistolfi  committed cbd6099

luaexpat: fix cflags

  • Participants
  • Parent commits 7a2f9ee
  • Branches veclinux-7.1

Comments (0)

Files changed (1)

File var/vabs/luaexpat/src/luaexpat.SlackBuild

View file
 #--------------------------------------------
 if [[ "$ARCH" = i?86 ]]; then
   ARCH=i586
-  SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+  SLKCFLAGS="-march=i586 -mtune=i686"
   CONFIGURE_TRIPLET="i486-vector-linux"
   LIBDIRSUFFIX=""
 elif [ "$ARCH" = "x86_64" ]; then
-  SLKCFLAGS="-O2 -fpic"
+  SLKCFLAGS="-fpic"
   CONFIGURE_TRIPLET="x86_64-vlocity-linux"
   LIBDIRSUFFIX="64"
 elif [ "$ARCH" = "powerpc" ]; then
         -Wwrite-strings
 
 CFLAGS = \$(CWARNS) -ansi -O2 -I\$(LUA_INC) \
-   -I\$(COMPAT_DIR) -I\$(EXPAT_INC)
+   -I\$(COMPAT_DIR) -I\$(EXPAT_INC) $CFLAGS
 CC = gcc
 EOF