Age | Commit message (Collapse) | Author | Files | Lines |
|
Change-Id: Ib216a5e593ddf5a7c8fe1f3f39e7a559387d0edb
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
|
|
If aux_source_directory(. SRCS) or file(glob SRCS "*.c") is used, files in SRCS are not sorted.
This can cause different orders of files across machines.
Even though it does not have any correctness issue, there is a problem.
If we have a build infrastructure (e.g., OBS), the result binaries can be different on each machine.
In this case, build results can be different on two different machines even if we have the same source files.
For example,
1. ld -o liba.a a.o b.o SRCS=a.c b.c
2. ld -o libb.a b.o a.o SRCS=b.c a.c
Then, liba.a and libb.a are different.
REASON
This is because of the system call readdir().
The system call readdir() returns a file in the directory in any order.
SOLUTION
Intead of readdir(), scandir() is used with alphasort().
This makes the list of files are sorted alphabetically.
AMENDED
1. another free() is added to free malloc()ed objects (Reviewed by Chan Lee).
2. remove "#include <errno.h>" (Reviewed by Chan Lee).
Change-Id: Id8aff23b2761ea04c1c49c91fcc511b9bc2b1228
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
|
|
Change-Id: I71a1e4e6516702e5bf28d6702b8e588eb3e4b202
Signed-off-by: HyungGi Lee <hyunggi.lee@samsung.com>
|
|
Bug-Tizen: TC-2230
Change-Id: I30413dba248244c4b4c7e8544a4752e2f61555d4
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Change-Id: I1e253912caf690c56d827a993e2b5bee18747cf6
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
|
|
|
|
|
|
|
|
|