summaryrefslogtreecommitdiffstats
path: root/examples/recipes/glibc@2.34.yml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/recipes/glibc@2.34.yml')
-rw-r--r--examples/recipes/glibc@2.34.yml68
1 files changed, 68 insertions, 0 deletions
diff --git a/examples/recipes/glibc@2.34.yml b/examples/recipes/glibc@2.34.yml
new file mode 100644
index 0000000..98016cd
--- /dev/null
+++ b/examples/recipes/glibc@2.34.yml
@@ -0,0 +1,68 @@
+tasks:
+ unpack:
+ fetch:
+ - name: '{{pn}}-{{pv}}.tar.xz'
+ sha256: '44d26a1fe20b8853a48f470ead01e4279e869ac149b195dda4e44a195d981ab2'
+ run: |
+ tar xf {{dldir}}/{{pn}}-{{pv}}.tar.xz
+
+ configure:
+ args:
+ host: 'platform'
+ inherit:
+ task: 'unpack'
+ build_depends:
+ - recipe: 'gcc'
+ task: 'install'
+ - recipe: 'libgcc-initial'
+ task: 'install'
+ depends:
+ - recipe: 'linux-uapi-headers'
+ task: 'install'
+ run: |
+ export BUILD_CC="$CC_FOR_BUILD"
+
+ mkdir {{pn}}-build
+ cd {{pn}}-build
+ ../{{pn}}-{{pv}}/configure \
+ --build={{build.gnu_triplet}} \
+ --host={{host.gnu_triplet}} \
+ --prefix={{host.prefix}} \
+ --includedir={{host.prefix}}/include \
+ --libdir={{host.prefix}}/lib \
+ --libexecdir={{host.prefix}}/lib \
+ --enable-add-ons \
+ --enable-obsolete-rpc \
+ --enable-kernel=2.6.32 \
+ --enable-bind-now \
+ --disable-profile \
+ --enable-stackguard-randomization \
+ --enable-lock-elision \
+ --disable-werror
+
+ echo slibdir={{host.prefix}}/lib >> configparms
+ echo sbindir={{host.prefix}}/bin >> configparms
+ echo rootsbindir={{host.prefix}}/bin >> configparms
+
+ compile:
+ args:
+ host: 'platform'
+ inherit:
+ task: 'configure'
+ run: |
+ cd {{pn}}-build
+ make
+
+ install:
+ args:
+ host: 'platform'
+ inherit:
+ task: 'compile'
+ output:
+ default:
+ runtime_depends:
+ - recipe: 'linux-uapi-headers'
+ task: 'install'
+ run: |
+ cd {{pn}}-build
+ make install_root={{destdir}} install