Skip to content

Commit

Permalink
ci: fix nginx build failure
Browse files Browse the repository at this point in the history
To fix the following nginx build error:
```
/usr/bin/ld: ../target/debug/libquiche.a(std-008055cc7d873802.std.cf1c8f7e-cgu.0.rcgu.o): in function `std::f32::<impl f32>::lerp':
/rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b//library/std/src/f32.rs:914: undefined reference to `fmaf'
/usr/bin/ld: ../target/debug/libquiche.a(std-008055cc7d873802.std.cf1c8f7e-cgu.0.rcgu.o): in function `std::f64::<impl f64>::lerp':
/rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b//library/std/src/f64.rs:916: undefined reference to `fma'
collect2: error: ld returned 1 exit status
```

It seems like related with recent rust (1.55) release.
  • Loading branch information
junhochoi committed Sep 10, 2021
1 parent 87edde8 commit 9d4cf63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extras/nginx/nginx-1.16.patch
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ index 000000000..23219d92a
+
+ CORE_INCS="$CORE_INCS $QUICHE/include"
+ CORE_DEPS="$CORE_DEPS $QUICHE/target/$QUICHE_BUILD_TARGET/libquiche.a"
+ CORE_LIBS="$CORE_LIBS $QUICHE/target/$QUICHE_BUILD_TARGET/libquiche.a $NGX_LIBPTHREAD"
+ CORE_LIBS="$CORE_LIBS $QUICHE/target/$QUICHE_BUILD_TARGET/libquiche.a $NGX_LIBPTHREAD -lm"
+
+ if [ "$NGX_SYSTEM" = "Darwin" ]; then
+ CORE_LIBS+=" -framework Security"
Expand Down

0 comments on commit 9d4cf63

Please sign in to comment.