Skip to content

Commit 171375f

Browse files
authored
[ntcoreffi] Link to NI libraries (wpilibsuite#5589)
This is required because wpiutil depends on these libraries and is statically linked.
1 parent 89add5d commit 171375f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ntcoreffi/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ model {
6161
project(':ntcore').addNtcoreDependency(binary, 'static')
6262
lib project: ':wpinet', library: 'wpinet', linkage: 'static'
6363
lib project: ':wpiutil', library: 'wpiutil', linkage: 'static'
64+
if (binary.targetPlatform.name == nativeUtils.wpi.platforms.roborio) {
65+
nativeUtils.useRequiredLibrary(binary, 'ni_link_libraries')
66+
}
6467
}
6568
}
6669
}

0 commit comments

Comments
 (0)