removed -o3 because it results in undefined behavior

This commit is contained in:
Ano-sys
2026-08-15 17:36:33 +02:00
parent 9986fafa80
commit 176f33f6de
+2 -2
View File
@@ -15,12 +15,12 @@ Of course it is not without usage, I will prepare the app to be hooked in Hyprla
#### macOS #### macOS
- `brew install sdl3` - `brew install sdl3`
- clone this repo and navigate into it - clone this repo and navigate into it
- `gcc SimpleImageViewer.c -o SimpleImageViewer -Wall -Werror -o3 $(pkg-config --cflags --libs sdl3)` or with `clang` - `gcc SimpleImageViewer.c -o SimpleImageViewer -Wall -Werror $(pkg-config --cflags --libs sdl3)` or with `clang`
- additional compiler arguments for ide: `-I/opt/homebrew/include -L/opt/homebrew/lib -Wl,-rpath,/opt/homebrew/lib -lSDL3 ` - additional compiler arguments for ide: `-I/opt/homebrew/include -L/opt/homebrew/lib -Wl,-rpath,/opt/homebrew/lib -lSDL3 `
#### Linux #### Linux
- `sudo pacman -S sdl3 --noconfirm` - `sudo pacman -S sdl3 --noconfirm`
- `gcc SimpleImageViewer.c -o SimpleImageViewer -Wall -Werror -o3 $(pkg-config --cflags --libs sdl3) -lm` or with `clang` - `gcc SimpleImageViewer.c -o SimpleImageViewer -Wall -Werror $(pkg-config --cflags --libs sdl3) -lm` or with `clang`
- when using Hyprland, move the scripts folder into your `~/.config/hypr/` - when using Hyprland, move the scripts folder into your `~/.config/hypr/`
- in `simple-image-viewer-clipboard.sh`: set `viewer`, I placed my binary beside this script - in `simple-image-viewer-clipboard.sh`: set `viewer`, I placed my binary beside this script
- move the `hypr_simpleimageviewer.lua` file into `~/.config/hypr/` - move the `hypr_simpleimageviewer.lua` file into `~/.config/hypr/`