Changeset 633


Ignore:
Timestamp:
Nov 3, 2014, 1:51:23 AM (5 years ago)
Author:
ehem
Message:

Pass $(CC) and $(CFLAGS) to the OpenWRT Makefile on the command-line.
This overrides these variables in the Makefile, obviating the need to
patch the file.
In the override_dh_auto_install, move to removing the .svn directories in
the package image directory, instead of the checked out source directory.
This makes it more obvious that the source isn't being modified, this is
merely cleanup for the Debian package.

Location:
branches/contrib/debian/package-host/libnl-tiny
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • branches/contrib/debian/package-host/libnl-tiny/debian/rules

    r604 r633  
    1212DEB_HOST_GNU_TYPE?=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
    1313CC=$(DEB_HOST_GNU_TYPE)-gcc
    14 export CC
     14CFLAGS=-O2 -fPIC
    1515
    1616%:
     
    2121        dh_auto_configure
    2222
    23         $(MAKE) -C src
     23        $(MAKE) CC:='$(CC)' CFLAGS:='$(CFLAGS)' -C src
    2424
    2525        dh_auto_test
     
    2828        install -d debian/libnl-tiny/usr/lib
    2929        install src/libnl-tiny.so debian/libnl-tiny/usr/lib/libnl-tiny.so
    30         install -d debian/libnl-tiny-dev/usr/include/netlink-tiny
    31         -find src/include/ -type d -name ".svn" -exec rm -rf {} \;
    32         cp -a src/include/* debian/libnl-tiny-dev/usr/include/netlink-tiny
     30        install -d debian/libnl-tiny-dev/usr/include
     31        cp -arl src/include debian/libnl-tiny-dev/usr/include/netlink-tiny
     32        find debian/libnl-tiny-dev/usr/include/netlink-tiny -type d -name .svn -prune -print0 | xargs -0 rm -rf
    3333
    3434override_dh_auto_clean:
Note: See TracChangeset for help on using the changeset viewer.