Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37617030
en ru br
ALT Linux repositórios
S:018-alt1
5.0: 015-alt1
4.1: 014-alt6.M41.1
4.0: 014-alt5

Group :: Sistema/Configurações/Hadware
RPM: pcmciautils

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: pcmciautils-014-alt-make.patch
Download


--- pcmciautils-013/Makefile~	2006-03-26 14:56:41 +0400
+++ pcmciautils-013/Makefile	2006-05-07 18:57:24 +0400
@@ -111,8 +111,7 @@
 GCC_LIB := $(shell $(CC) -print-libgcc-file-name )
 
 # use '-Os' optimization if available, else use -O2
-OPTIMIZATION := ${shell if $(CC) -Os -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \
-		then echo "-Os"; else echo "-O2" ; fi}
+OPTIMIZATION := $(RPM_OPT_FLAGS)
 
 # check if compiler option is supported
 cc-supports = ${shell if $(CC) ${1} -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo "$(1)"; fi;}
@@ -145,33 +144,15 @@
 
 CFLAGS += $(WARNINGS) -I$(GCCINCDIR)
 
-LIB_OBJS = -lc -lsysfs
-LIB_PCI_OBJS = -lc -lpci
+LIB_OBJS = -lsysfs
+LIB_PCI_OBJS = -lpci
 
-ifeq ($(strip $(STATIC)),true)
-	LIB_OBJS = -lsysfs
-	LIB_PCI_OBJS = -lpci
-	LDFLAGS += -static
-else
-	LDFLAGS += -Wl,-warn-common
-endif
+QUIET=
+HOST_PROGS=
 
-ifeq ($(strip $(V)),false)
-	QUIET=@$(PWD)/build/ccdv
-	HOST_PROGS=build/ccdv
-else
-	QUIET=
-	HOST_PROGS=
-endif
-
-# if DEBUG is enabled, then we do not strip or optimize
-ifeq ($(strip $(DEBUG)),true)
-	CFLAGS  += -O1 -g -DDEBUG -D_GNU_SOURCE
-	STRIPCMD = /bin/true -Since_we_are_debugging
-else
-	CFLAGS  += $(OPTIMIZATION) -fomit-frame-pointer -D_GNU_SOURCE
-	STRIPCMD = $(STRIP) -s --remove-section=.note --remove-section=.comment
-endif
+CFLAGS  += $(OPTIMIZATION) -D_GNU_SOURCE
+LDFLAGS += -Wl,-warn-common
+STRIPCMD = /bin/true
 
 # HOTPLUG or UDEV?
 ifeq ($(strip $(UDEV)),false)
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009