Merge pull request #172773 from squalus/rp-pppoe
rpPPPoE: support cross compile
This commit is contained in:
commit
8c5c1c6207
@ -16,11 +16,16 @@ stdenv.mkDerivation rec {
|
||||
cd src
|
||||
export PPPD=${ppp}/sbin/pppd
|
||||
'';
|
||||
|
||||
configureFlags = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ "rpppoe_cv_pack_bitfields=rev" ];
|
||||
|
||||
postConfigure = ''
|
||||
sed -i Makefile -e 's@DESTDIR)/etc/ppp@out)/etc/ppp@'
|
||||
sed -i Makefile -e 's@PPPOESERVER_PPPD_OPTIONS=@&$(out)@'
|
||||
'';
|
||||
|
||||
makeFlags = [ "AR:=$(AR)" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Roaring Penguin Point-to-Point over Ethernet tool";
|
||||
platforms = platforms.linux;
|
||||
|
Loading…
Reference in New Issue
Block a user