summarylogtreecommitdiffstats
path: root/CMakeLists.patch
blob: 2ef192890240e80dd8f7a166b7d54d0f51eafc5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- pkg.orig/CMakeLists.txt	2021-07-27 19:35:56.935858221 -0300
+++ pkg.new/CMakeLists.txt	2021-07-27 19:38:28.682531604 -0300
@@ -4,14 +4,14 @@
 set(CMAKE_CXX_STANDARD 17)
 
 if (NOT (MSVC))
-    set(CMAKE_CXX_FLAGS "-O3 -march=native -Wall -static -static-libstdc++ -ffast-math")
+    set(CMAKE_CXX_FLAGS "-O2 -fpermissive")
 else (NOT (MSVC))
     set(CMAKE_CXX_FLAGS "/O2")
     STRING(REPLACE "/O2" "/Od" CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE})
 endif ()
 
 find_library(FLAC++_LIBRARIES NAMES FLAC++ FLAC)
-find_library(OGG NAMES OGG)
+find_library(ogg NAMES ogg)
 
 add_executable(${PROJECT_NAME} main.cc)
-target_link_libraries(${PROJECT_NAME} FLAC++ FLAC OGG)
+target_link_libraries(${PROJECT_NAME} FLAC++ FLAC ogg)