Changeset 3c1438a in freewrt


Ignore:
Timestamp:
May 22, 2007, 4:50:19 PM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Children:
337b581
Parents:
5e15178
Message:
  • do not create statically linked binaries – size issues…
  • do not create multiple copies of the same file, use links

git-svn-id: svn://www.freewrt.org/trunk/freewrt@2608 afb5a338-a214-0410-bd46-81f09a774fd1

Location:
package/procps
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • package/procps/Makefile

    r5e15178 r3c1438a  
    99PKG_NAME:=              procps
    1010PKG_VERSION:=           3.2.7
    11 PKG_RELEASE:=           2
     11PKG_RELEASE:=           3
    1212PKG_MD5SUM:=            f490bca772b16472962c7b9f23b1e97d
    1313PKG_SOURCE_URL:=        http://procps.sourceforge.net/
     
    1919BUILD_STYLE:=           auto
    2020INSTALL_STYLE:=         auto
    21 XAKE_FLAGS+=            CC="${TARGET_CC}" \
    22                         CFLAGS="${TCFLAGS} -static" \
    23                         CPPFLAGS="-I${STAGING_DIR}/usr/include" \
    24                         LDFLAGS="${TLDFLAGS} -L${WRKBUILD}/lib -static"
    2521
    2622post-install:
    27         ${INSTALL_DIR} ${IDIR_PROCPS}/usr/bin
     23        ${INSTALL_DIR} ${IDIR_PROCPS}/{bin,sbin,usr/bin}
    2824        ${INSTALL_BIN} ${WRKINST}/usr/bin/uptime ${IDIR_PROCPS}/usr/bin
    2925        ${INSTALL_BIN} ${WRKINST}/usr/bin/tload ${IDIR_PROCPS}/usr/bin
     
    3329        ${INSTALL_BIN} ${WRKINST}/usr/bin/vmstat ${IDIR_PROCPS}/usr/bin
    3430        ${INSTALL_BIN} ${WRKINST}/usr/bin/watch ${IDIR_PROCPS}/usr/bin
    35         ${INSTALL_BIN} ${WRKINST}/usr/bin/skill ${IDIR_PROCPS}/usr/bin
    36         ${INSTALL_BIN} ${WRKINST}/usr/bin/snice ${IDIR_PROCPS}/usr/bin
    3731        ${INSTALL_BIN} ${WRKINST}/usr/bin/pmap ${IDIR_PROCPS}/usr/bin
    3832        ${INSTALL_BIN} ${WRKINST}/usr/bin/pgrep ${IDIR_PROCPS}/usr/bin
    39         ${INSTALL_BIN} ${WRKINST}/usr/bin/pkill ${IDIR_PROCPS}/usr/bin
    4033        ${INSTALL_BIN} ${WRKINST}/usr/bin/slabtop ${IDIR_PROCPS}/usr/bin
    4134        ${INSTALL_BIN} ${WRKINST}/usr/bin/pwdx ${IDIR_PROCPS}/usr/bin
    42         ${INSTALL_DIR} ${IDIR_PROCPS}/bin
    4335        ${INSTALL_BIN} ${WRKINST}/bin/kill ${IDIR_PROCPS}/bin
    4436        ${INSTALL_BIN} ${WRKINST}/bin/ps ${IDIR_PROCPS}/bin
    45         ${INSTALL_DIR} ${IDIR_PROCPS}/sbin
    4637        ${INSTALL_BIN} ${WRKINST}/sbin/sysctl ${IDIR_PROCPS}/sbin
     38        cd ${IDIR_PROCPS}/usr/bin; \
     39            ln -sf ../../bin/kill skill; \
     40            ln -sf ../../bin/kill snice; \
     41            ln -sf pgrep pkill
    4742
    4843include ${TOPDIR}/mk/pkg-bottom.mk
  • package/procps/patches/patch-Makefile

    r5e15178 r3c1438a  
    11$FreeWRT$
    2 
    3         install(1) doesn't have a -D option
    4 
    52--- procps-3.2.7.orig/Makefile  Sat Jun 24 09:02:02 2006
    6 +++ procps-3.2.7/Makefile       Tue May 22 14:28:43 2007
     3+++ procps-3.2.7/Makefile       Tue May 22 14:43:11 2007
    74@@ -27,7 +27,7 @@ TARVERSION   := $(VERSION).$(SUBVERSION)
    85 ldconfig := ldconfig
     
    1411 # Lame x86-64 /lib64 and /usr/lib64 abomination:
    1512 lib64    := lib$(shell [ -d /lib64 ] && echo 64)
     13@@ -82,7 +82,7 @@ CURSES := -lncurses
     14 
     15 # Preprocessor flags.
     16 PKG_CPPFLAGS := -D_GNU_SOURCE -I proc
     17-CPPFLAGS     := -I/usr/include/ncurses
     18+CPPFLAGS     ?= -I/usr/include/ncurses
     19 ALL_CPPFLAGS := $(PKG_CPPFLAGS) $(CPPFLAGS)
     20 
     21 # Left out -Wconversion due to noise in glibc headers.
     22@@ -102,11 +102,11 @@ PKG_CFLAGS   := -fno-common -ffast-math
     23   -Wstrict-prototypes -Wmissing-prototypes
     24 # Note that some stuff below is conditional on CFLAGS containing
     25 # an option that starts with "-g". (-g, -g2, -g3, -ggdb, etc.)
     26-CFLAGS       := -O2 -s
     27+CFLAGS       ?= -O2 -s
     28 ALL_CFLAGS   := $(PKG_CFLAGS) $(CFLAGS)
     29 
     30 PKG_LDFLAGS  := -Wl,-warn-common
     31-LDFLAGS      :=
     32+LDFLAGS      ?=
     33 ALL_LDFLAGS  := $(PKG_LDFLAGS) $(LDFLAGS)
     34 
     35 ############ Add some extra flags if gcc allows
     36@@ -128,7 +128,7 @@ check_gcc = $(shell if $(CC) $(ALL_CPPFL
     37 # i386 and x86-64, mips and mips64, sparc and sparc64, and so on.
     38 # Failure to do so will cause data corruption.
     39 m64 := $(call check_gcc,-m64,$(call check_gcc,-mabi=64,))
     40-ALL_CFLAGS += $(m64)
     41+#ALL_CFLAGS += $(m64)
     42 
     43 ALL_CFLAGS += $(call check_gcc,-Wdeclaration-after-statement,)
     44 ALL_CFLAGS += $(call check_gcc,-Wpadded,)
    1645@@ -222,10 +222,16 @@ clean:
    1746 ###### install
Note: See TracChangeset for help on using the changeset viewer.