about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libstore/build.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index aea4ccdc437b..6b1bc55f95df 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -1834,7 +1834,7 @@ void DerivationGoal::startBuilder()
 
 #ifdef CAN_DO_LINUX32_BUILDS
             if (drv.platform == "i686-linux" && thisSystem == "x86_64-linux") {
-                if (personality(PER_LINUX32_3GB) == -1)
+                if (personality(0x0008 | 0x8000000 /* == PER_LINUX32_3GB */) == -1)
                     throw SysError("cannot set i686-linux personality");
             }
 #endif