Commit Graph

21 Commits

Author SHA1 Message Date
fwcd
2a8f2c6467
[libflac] Fix WASM build by disabling stack protector via feature ()
This fixes the `wasm32-emscripten` build of `libflac`, which would
previously fail with

<details>

<summary>Linking Errors</summary>

```
[59/61] : && /opt/homebrew/Cellar/emscripten/3.1.54/libexec/emcc -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wnested-externs -Wshadow -Wundef -Wmissing-declarations -Winline  -DNDEBUG -O3 -DNDEBUG  microbench/CMakeFiles/benchmark_residual.dir/benchmark_residual.c.o microbench/CMakeFiles/benchmark_residual.dir/util.c.o -o microbench/benchmark_residual.js  src/libFLAC/libFLAC.a  -lrt  -lm  <path to vcpkg>/installed/wasm32-emscripten-release/lib/libogg.a && :
FAILED: microbench/benchmark_residual.js 
: && /opt/homebrew/Cellar/emscripten/3.1.54/libexec/emcc -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wnested-externs -Wshadow -Wundef -Wmissing-declarations -Winline  -DNDEBUG -O3 -DNDEBUG  microbench/CMakeFiles/benchmark_residual.dir/benchmark_residual.c.o microbench/CMakeFiles/benchmark_residual.dir/util.c.o -o microbench/benchmark_residual.js  src/libFLAC/libFLAC.a  -lrt  -lm  <path to vcpkg>/installed/wasm32-emscripten-release/lib/libogg.a && :
wasm-ld: error: microbench/CMakeFiles/benchmark_residual.dir/benchmark_residual.c.o: undefined symbol: __stack_chk_guard
wasm-ld: error: microbench/CMakeFiles/benchmark_residual.dir/benchmark_residual.c.o: undefined symbol: __stack_chk_guard
wasm-ld: error: microbench/CMakeFiles/benchmark_residual.dir/benchmark_residual.c.o: undefined symbol: __stack_chk_fail
wasm-ld: error: microbench/CMakeFiles/benchmark_residual.dir/benchmark_residual.c.o: undefined symbol: __stack_chk_guard
wasm-ld: error: microbench/CMakeFiles/benchmark_residual.dir/benchmark_residual.c.o: undefined symbol: __stack_chk_guard
wasm-ld: error: microbench/CMakeFiles/benchmark_residual.dir/benchmark_residual.c.o: undefined symbol: __stack_chk_fail
```

</details>

The stack protector flag is [documented
here](66152791d8/CMakeLists.txt (L21))
and is [unsupported in
Emscripten](https://github.com/emscripten-core/emscripten/issues/17030).

### Checklist

- [x] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [x] SHA512s are updated for each updated download.
- [x] The "supports" clause reflects platforms that may be fixed by this
new version.
- [x] Any fixed [CI
baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt)
entries are removed from that file.
- [x] Any patches that are no longer applied are deleted from the port's
directory.
- [x] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [x] Only one version is added to each modified port's versions file.
2024-03-05 02:06:46 -08:00
Jia Yue Hua
2028f27543
[libflac] update to 1.4.3 () 2023-10-02 20:23:53 -07:00
Pierre Wendling
658a8165a9
[libflac] Bump to 1.4.2 ()
* [libflac] Bump to 1.4.2.

- The license was incorrectly set to GFDL instead of BSD-3.
See: https://github.com/xiph/flac#components
- Remove patches that were merged upstream.
- Stack protection and fortify source under mingw is checked upstream.
- CMake config file location has changed.
- Use vcpkg_install_copyright to install license.

* [libflac] Add usage file.

* [libflac] Update baseline.
2023-02-13 07:37:00 -08:00
Thomas1664
768932ab5b
[libflac] Disable man pages ()
* [libflac] Remove documentation

* version

* [libflac] Disable man pages

* version

* man already removed

* version
2022-07-28 15:19:48 -07:00
Cheney Wang
ee0bf4729a
[libflac] Update to 1.3.4 ()
* [libflac] Update to 1.3.4

* Fix usage issue

* Modify format

Co-authored-by: Cheney-Wang <v-xincwa@microsoft.com>
2022-04-26 19:26:07 -07:00
Alexander Neumann
b03d383e49
[libflac] Fix pc file ()
* [libflac] fix pc file; remove m flag on windows and add version

* version stuff
2021-11-29 12:02:52 -08:00
cbergemann
b24be705e9
[libflac] require NASM for libflac[asm] ()
* require NASM for libflac[asm]

* Increment port version number

* Update ports/libflac/portfile.cmake

Co-authored-by: BergemannC <CBergemann@nordex-online.com>
Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
2020-11-10 09:34:50 -08:00
NancyLi1013
27268c700a
[libflac] Fix build error () 2020-10-27 20:34:03 -07:00
Long Nguyen
80ef2a3455
[flac] Disable stack smash protection and FORTIFY_SOURCE for mingw ()
* [flac] Disable stack smash protection and FORTIFY_SOURCE for mingw

* Change flag injection + copyright install
2020-08-07 11:42:21 -07:00
Kevin Lu
62d4320409
[sdl2-mixer] Fix FLAC symbol export when static linking, add nativemidi default feature ()
* [sdl2-mixer] Fix FLAC symbol export when static linking

Fix regression introduced by 

* [sdl2-mixer] Add nativemidi default feature

Closes 

* [libsndfile] Revert to port version 8 as version 10

* [libflac] Use BUILD_SHARED_LIBS to properly export FLAC__NO_DLL via CMake

* [libflac] Force FLAC__NO_DLL in installed headers in static triplets

* [libflac] Modify headers on installation
2020-07-31 11:23:27 -07:00
evpobr
875821cd80
[libflac] Update to 1.3.3-1 ()
Update to ce6dd6b which has the following benign changes compared to 1.3.3 proper

* `std::`-ify a bunch of C library stuff
* C-cast -> `static_cast` or `reinterpret_cast`
* build system changes
* `unsigned` -> `uint32_t`
* removing UB in some shifts
* better support for powerPC and Windows
* Change out `cos(double)` for `cosf(float)` in C
* Correct `%d` to `%u` in printf
2020-05-21 11:19:21 -07:00
Michał Janiszewski
bfaf18478f [libflac] Update libflac to 1.3.3 ()
* [libflac] Update libflac to 1.3.3

* Update portfile.cmake
2019-11-21 17:03:32 -08:00
Alexander Karatarakis
0fe2068a56 [libflac] Apply patch for flac_max and flac_min 2018-10-03 22:54:39 -07:00
Aybe
38ae2f69b7 [libflac] using #ifdef for patches instead 2017-11-21 05:46:58 +01:00
Aybe
cb30c3fd00 [libflac] patches for UWP builds 2017-11-17 00:54:14 +01:00
codicodi
c24afa97a2 [flac] use nasm 2017-03-09 23:52:45 +01:00
codicodi
533c60fcca [libflac] update to 1.3.2 2017-02-25 15:25:20 +01:00
codicodi
764563457f [libflac] remove unused flags 2016-12-07 17:49:28 +01:00
Alexander Karatarakis
59587d94c7 [libflac] Fix typo 2016-12-06 14:39:17 -08:00
codicodi
f1a3424c77 [libflac] update config in static builds
Now static libs can be used without defining FLAC__NO_DLL by user.
2016-12-06 22:38:25 +01:00
codicodi
175bb41f82 [libflac] initial commit 2016-12-06 12:14:31 +01:00