d/rules: make fasm build *itself*
Tomasz Buchert
8 years ago
|
0 |
fasm (1.71.22-2) unstable; urgency=medium
|
|
1 |
|
|
2 |
* Make fasm build *itself*
|
|
3 |
* Link with C library
|
|
4 |
|
|
5 |
-- Tomasz Buchert <tomasz@debian.org> Thu, 18 Jun 2015 00:26:06 +0200
|
|
6 |
|
0 | 7 |
fasm (1.71.22-1) unstable; urgency=low
|
1 | 8 |
|
2 | 9 |
* Initial release (Closes: #513402)
|
1 | 1 |
Section: devel
|
2 | 2 |
Priority: optional
|
3 | 3 |
Maintainer: Tomasz Buchert <tomasz@debian.org>
|
4 | |
Build-Depends: debhelper (>= 9)
|
|
4 |
Build-Depends: debhelper (>= 9), fasm,
|
|
5 |
libc6-dev-i386 [amd64], gcc-multilib [amd64]
|
5 | 6 |
Standards-Version: 3.9.6
|
6 | 7 |
Homepage: http://flatassembler.net/
|
7 | 8 |
Vcs-Git: git://anonscm.debian.org/collab-maint/fasm.git
|
0 | |
fasm /usr/bin/
|
|
0 |
source/libc/fasm /usr/bin/
|
1 | 1 |
tools /usr/share/fasm/
|
2 | 2 |
|
3 | 3 |
examples/elfexe/*.asm /usr/share/fasm/examples/elfexe/
|
0 | |
# fasm, when built with itself, is a statically linked library
|
1 | |
# (no gcc or ld is involved in the process)
|
2 | |
statically-linked-binary usr/bin/fasm
|
|
0 |
# this is a false-positive
|
|
1 |
hardening-no-fortify-functions usr/bin/fasm
|
7 | 7 |
|
8 | 8 |
override_dh_install:
|
9 | 9 |
mkdir -p debian/tmp
|
|
10 |
(cd source/libc; fasm fasm.asm; gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -m32 fasm.o -o fasm)
|
10 | 11 |
dh_install --list-missing
|
11 | 12 |
|
12 | |
override_dh_strip:
|
|
13 |
override_dh_clean:
|
|
14 |
dh_clean
|
|
15 |
rm -f source/libc/fasm source/libc/fasm.o
|
0 | |
# the sources (assembler code) are actually distributed in "source" directory
|
1 | |
# lintian is unable to find them since they are non-standard assembly files
|
|
0 |
# the source (assembler code) is in "source" directory
|
2 | 1 |
source-is-missing fasm
|