Skip to content

Commit 4009f2d

Browse files
committed
fix(root) Add -m32 flags for x86 target to enforce 32-bit build
1 parent f15c42e commit 4009f2d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/root/package.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,10 @@ def cmake_args(self):
609609
options.append(define('TIFF_LIBRARY', spec['libtiff'].libs.joined(';')))
610610
options.append(define('GIF_DIR', spec['giflib'].prefix))
611611

612+
if self.spec.target == 'x86':
613+
options.append(define('CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS', '-m32'))
614+
options.append(define('CMAKE_EXE_FLAGS', '-m32'))
615+
612616
return options
613617

614618
def setup_build_environment(self, env):

0 commit comments

Comments
 (0)