Mercurial > hg > aboriginal
annotate sources/sections/uClibc++.build @ 1797:450df7445d09 draft
Remove debugging code.
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 14 Oct 2015 01:08:10 -0500 |
parents | d461b345c3c9 |
children | acaa88463c0c |
rev | line source |
---|---|
906
5e0cbc73da55
Split out linux-headers, uClibc, and uClibc++ as their own sections.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
1 # Build and install uClibc++ |
5e0cbc73da55
Split out linux-headers, uClibc, and uClibc++ as their own sections.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
2 |
5e0cbc73da55
Split out linux-headers, uClibc, and uClibc++ as their own sections.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
3 CROSS= make defconfig && |
5e0cbc73da55
Split out linux-headers, uClibc, and uClibc++ as their own sections.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
4 sed -r -i 's/(UCLIBCXX_HAS_(TLS|LONG_DOUBLE))=y/# \1 is not set/' .config && |
1793
d461b345c3c9
Build sh2eb for the numato mimas v2. Still a lot of rough edges.
Rob Landley <rob@landley.net>
parents:
944
diff
changeset
|
5 sed -r -i '/UCLIBCXX_RUNTIME_PREFIX=/s/".*"/""/' .config || dienow |
d461b345c3c9
Build sh2eb for the numato mimas v2. Still a lot of rough edges.
Rob Landley <rob@landley.net>
parents:
944
diff
changeset
|
6 if [ ! -z "$ELF2FLT" ] |
d461b345c3c9
Build sh2eb for the numato mimas v2. Still a lot of rough edges.
Rob Landley <rob@landley.net>
parents:
944
diff
changeset
|
7 then |
d461b345c3c9
Build sh2eb for the numato mimas v2. Still a lot of rough edges.
Rob Landley <rob@landley.net>
parents:
944
diff
changeset
|
8 sed -i 's/.*\(BUILD_ONLY_STATIC_LIB\).*/\1=y/' .config || dienow |
d461b345c3c9
Build sh2eb for the numato mimas v2. Still a lot of rough edges.
Rob Landley <rob@landley.net>
parents:
944
diff
changeset
|
9 fi |
906
5e0cbc73da55
Split out linux-headers, uClibc, and uClibc++ as their own sections.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
10 CROSS= make oldconfig && |
5e0cbc73da55
Split out linux-headers, uClibc, and uClibc++ as their own sections.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
11 CROSS="$ARCH"- make && |
944
fc134a13357e
Largeish refactoring and cleanup of compiler build:
Rob Landley <rob@landley.net>
parents:
938
diff
changeset
|
12 CROSS= make install PREFIX="$STAGE_DIR/c++" && |
906
5e0cbc73da55
Split out linux-headers, uClibc, and uClibc++ as their own sections.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
13 |
5e0cbc73da55
Split out linux-headers, uClibc, and uClibc++ as their own sections.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
14 # Move libraries somewhere useful. |
5e0cbc73da55
Split out linux-headers, uClibc, and uClibc++ as their own sections.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
15 |
944
fc134a13357e
Largeish refactoring and cleanup of compiler build:
Rob Landley <rob@landley.net>
parents:
938
diff
changeset
|
16 mv "$STAGE_DIR"/c++/lib/* "$STAGE_DIR"/lib && |
fc134a13357e
Largeish refactoring and cleanup of compiler build:
Rob Landley <rob@landley.net>
parents:
938
diff
changeset
|
17 rm -rf "$STAGE_DIR"/c++/{lib,bin} && |
fc134a13357e
Largeish refactoring and cleanup of compiler build:
Rob Landley <rob@landley.net>
parents:
938
diff
changeset
|
18 ln -s libuClibc++.so "$STAGE_DIR"/lib/libstdc++.so && |
fc134a13357e
Largeish refactoring and cleanup of compiler build:
Rob Landley <rob@landley.net>
parents:
938
diff
changeset
|
19 ln -s libuClibc++.a "$STAGE_DIR"/lib/libstdc++.a |