Comments (3)
Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ).
I don't see anything wrong in the Makefile, it's using += so it's appending any previous data.
I exported the flags before calling make and worked as expected:
#!bash
export LDFLAGS+="-L/usr/local/lib64"
export CFLAGS+="-I/usr/local/include"
make config=release -f efsw-static-lib.make verbose=yes
g++ -I/usr/local/include -MMD -MP -DEFSW_VERBOSE -DNDEBUG -I../../include -I../../src -O2 -Wall -Wno-long-long -o "../../obj/linux/release/efsw-static-lib/FileWatcherCWrapper.o" -MF ../../obj/linux/release/efsw-static-lib/FileWatcherCWrapper.d -c "../../src/efsw/FileWatcherCWrapper.cpp"
Regards
from efsw.
Original comment by Mihail Slobodyanuk (Bitbucket: mihail_slobodyanuk, ).
It's will be not overriden if you call like:
make CFLAGS="-Os"
see:
https://www.gnu.org/software/make/manual/html_node/Overriding.html
An argument that contains ‘=’ specifies the value of a variable: ‘v=x’ sets the value of the variable v to x. If you specify a value in this way, all ordinary assignments of the same variable in the makefile are ignored; we say they have been overridden by the command line argument.
from efsw.
Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ).
I understand what you say but... it's not relevant to the project, and the "bug" belongs to premake4 project.
This is a problem on how premake generate the Make files, and it's really easy to solve.
You can solve the issue in three easy ways:
-
Exporting as i said in the previous post.
-
Editing the make files generated by premake.
-
Adding the flags in the premake4.lua file. ( using the commands buildoptions and linkoptions ).
Sadly i can't please everyone, i think this problem doesn't deserve any change to the project. If you wan't you can propose a patch, and i'll take it into consideration.
Regards
from efsw.
Related Issues (20)
- Filename passed without extension HOT 1
- Cannot track symlinked file in Linux HOT 10
- Bazel Building HOT 1
- On MacOS, actions happening shortly after starting watcher are not reported HOT 19
- CMake multi config issue HOT 2
- Support Windows long path aware HOT 4
- Check Return Code and Allow Buffer Customization in `ReadDirectoryChangesW()` Function HOT 1
- Paranoid exit code? HOT 2
- MacOS build on server HOT 1
- [Bug] Crash while thread running after FileWatcherInotfiy destructed. HOT 16
- Premake5 macosx after gmake2 ... [CI Server] HOT 1
- Last modified file remembered and failing to fire event under Windows HOT 5
- Premake links in ReadMe is dead HOT 1
- FSEventStreamScheduleWithRunLoop has been deprecated in MacOS 13 HOT 3
- Nested template syntax breaks LEGACY builds HOT 3
- Generic file watcher doesn't report new directories on network drives HOT 2
- memory leak doubt and thread conflict HOT 2
- Cross building on macOS may cause `EFSW_FSEVENTS_NOT_SUPPORTED` incorrectly defined HOT 2
- Incorrect move events reported for simultaneous file moves across monitored subdirectories on Windows HOT 9
- Warning C4834 in Log.cpp
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from efsw.